]> Cypherpunks.ru repositories - gostls13.git/commit
mime/multipart: handle ReadForm(math.MaxInt64) better
authorRuss Cox <rsc@golang.org>
Thu, 3 Dec 2020 14:45:07 +0000 (09:45 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 3 Dec 2020 16:05:09 +0000 (16:05 +0000)
commit5246fa5e75b129a7dbd9722aa4de0cbaf7ceae43
treebe11a2973f650b9d46b2388f54731d44e72f92ec
parent07cba70d5794747044ce5f2f3b34de139193e2a5
mime/multipart: handle ReadForm(math.MaxInt64) better

Returning an error about integer overflow is needlessly pedantic.
The meaning of ReadForm(MaxInt64) is easily understood
(accept a lot of data) and can be implemented.

Fixes #40430.

Change-Id: I8a522033dd9a2f9ad31dd2ad82cf08d553736ab9
Reviewed-on: https://go-review.googlesource.com/c/go/+/275112
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/mime/multipart/formdata.go
src/mime/multipart/formdata_test.go
src/net/http/request_test.go