1
0
mirror of https://github.com/golang/go synced 2024-10-04 18:31:22 -06:00
go/src/pkg/mime
Brad Fitzpatrick 24555c7b8c mime/multipart: don't strip leading space/tab in quoted-printable decoding
Late bug fix, but this is arguably a regression from Go 1.0,
since we added this transparent decoding since then. Without
this fix, Go 1.0 users could decode this correctly, but Go 1.1
users would not be able to.

The newly added test is from the RFC itself.

The updated tests had the wrong "want" values before. They
were there to test \r\n vs \n equivalence (which is
unchanged), not leading whitespace.

The skipWhite decoder struct field was added in the battles of
Issue 4771 in revision b3bb265bfecf. It was just a wrong
strategy, from an earlier round of attempts in
https://golang.org/cl/7300092/

Update #4771
Fixes #5295

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/8536045
2013-04-17 20:04:58 -07:00
..
multipart mime/multipart: don't strip leading space/tab in quoted-printable decoding 2013-04-17 20:04:58 -07:00
testdata mime, strconv: Make testdata more consistent. 2013-01-22 13:44:35 -08:00
grammar.go pkg: Removing duplicated words ("of of", etc.), mostly from comments. 2012-07-09 09:16:10 +10:00
mediatype_test.go mime: make ParseMediaType return zero results on error 2012-04-25 12:01:01 -07:00
mediatype.go mime: make ParseMediaType return zero results on error 2012-04-25 12:01:01 -07:00
type_test.go mime: implement TypeByExtension for windows 2011-11-18 10:07:36 +11:00
type_unix.go mime: use Scanner to read mime files during init 2013-02-20 14:34:03 -08:00
type_windows.go mime: do not test for .wav on windows 2013-02-15 16:55:51 +11:00
type.go mime: make FormatMediaType take full type for consistency 2012-01-17 11:57:42 -08:00