net/http: r.MultipartReader() reports not multipart when boundary is empty string #32342
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?1.12
Does this issue reproduce with the latest release?
N/A
What operating system and processor architecture are you using (
go env
)?Ubuntu 18.04
go env
OutputWhat did you do?
Results in:
This means comparing errors against http.ErrNotMultipart is not reliable.
What did you expect to see?
I would expect an error that doesn't assert that data with the content type
multipart/form-data
is notmultipart/form-data
. More abstractly, I would expect a set of errors to compare against such that when the error ishttp.ErrNotMultipart
it is reliable to proceed assuming the client did not intend the http body to be multipart rather than they just bolloxed it up.What did you see instead?
As above.
The text was updated successfully, but these errors were encountered: