Skip to content

Commit

Permalink
Update ErrNoMultipartForm
Browse files Browse the repository at this point in the history
Make it a more descriptive error message.

Closes #1606
  • Loading branch information
erikdubbelboer committed Aug 16, 2023
1 parent 727021a commit 4b0e6c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http.go
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ func (req *Request) parsePostArgs() {

// ErrNoMultipartForm means that the request's Content-Type
// isn't 'multipart/form-data'.
var ErrNoMultipartForm = errors.New("request has no multipart/form-data Content-Type")
var ErrNoMultipartForm = errors.New("request Content-Type has bad boundary or is not multipart/form-data")

// MultipartForm returns request's multipart form.
//
Expand Down

0 comments on commit 4b0e6c7

Please sign in to comment.