1
0
mirror of https://github.com/golang/go synced 2024-11-20 10:04:45 -07:00
go/src/mime
Michael Fraenkel 7478ea5dba 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>
2016-10-05 16:35:03 +00:00
..
multipart net/http: multipart ReadForm close file after copy 2016-10-05 16:35:03 +00:00
quotedprintable mime/quotedprintable: accept trailing soft line-break at the end of message 2016-09-11 01:51:07 +00:00
testdata
encodedword_test.go
encodedword.go all: standardize RFC mention format 2016-04-12 21:07:52 +00:00
example_test.go
grammar.go
mediatype_test.go
mediatype.go
type_dragonfly.go
type_freebsd.go
type_openbsd.go
type_plan9.go mime: fix mime type file name on Plan 9 2016-05-15 19:56:08 +00:00
type_test.go
type_unix.go
type_windows.go
type.go