]> Cypherpunks repositories - gostls13.git/commit
net/http: multipart ReadForm close file after copy
authorMichael Fraenkel <michael.fraenkel@gmail.com>
Wed, 5 Oct 2016 15:27:34 +0000 (11:27 -0400)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 5 Oct 2016 16:35:03 +0000 (16:35 +0000)
commit7478ea5dba7ed02ddffd91c1d17ec8141f7cf184
tree55c20d832a9546fbd61d685b481dbc5f8be95e47
parentf69991c17d9dea88e927643e4b7fdc43ad789ac3
net/http: multipart ReadForm close file after copy

Always close the file regardless of whether the copy succeeds or fails.
Pass along the close error if the copy succeeds

Fixes #16296

Change-Id: Ib394655b91d25750f029f17b3846d985f673fb50
Reviewed-on: https://go-review.googlesource.com/30410
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/mime/multipart/formdata.go