Skip to content

Commit 4b0e6c7

Browse files
committedAug 16, 2023
Update ErrNoMultipartForm
Make it a more descriptive error message. Closes #1606
1 parent 727021a commit 4b0e6c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎http.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ func (req *Request) parsePostArgs() {
935935

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

940940
// MultipartForm returns request's multipart form.
941941
//

0 commit comments

Comments
 (0)
Please sign in to comment.