mirror of
https://github.com/golang/go
synced 2024-10-04 14:21:21 -06:00
87eaa4cd0c
If a part ends with "--boundary--", without a final "\r\n", that's also a graceful EOF, and we should return io.EOF instead of the fmt-wrapped io.EOF from bufio.Reader.ReadSlice. I found this bug parsing an image attachment from gmail. Minimal test case stripped down from the original gmail-generated attachment included. R=golang-dev, r CC=golang-dev https://golang.org/cl/6118043 |
||
---|---|---|
.. | ||
testdata | ||
formdata_test.go | ||
formdata.go | ||
multipart_test.go | ||
multipart.go | ||
writer_test.go | ||
writer.go |