]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.6] 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)
committerChris Broadfoot <cbro@golang.org>
Thu, 1 Dec 2016 19:33:48 +0000 (19:33 +0000)
commitf0fa13b346c1be50aae0eb4349a7c09bdc5826fc
treeef6296f8130faaf4b0b77415e595ff800c123bf9
parentda6b9ec7bf1722fa00196e1eadc10a29156b6b28
[release-branch.go1.6] 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

Updates #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>
Reviewed-on: https://go-review.googlesource.com/33640
Reviewed-by: Chris Broadfoot <cbro@golang.org>
src/mime/multipart/formdata.go