1
0
mirror of https://github.com/golang/go synced 2024-11-07 20:46:18 -07:00
go/src/mime
Ian Lance Taylor 228b4416b7 mime/quotedprintable: accept bytes >= 0x80
RFC 2045 doesn't permit non-ASCII bytes, but some systems send them
anyhow. With this change, we accept them. This does make it harder to
validate quotedprintable data, but on balance this seems like the best
approach given the existence of systems that generate invalid data.

Fixes #22597

Change-Id: I9f80f90a60b76ada2b5dea658b8dc8aace56cdbd
Reviewed-on: https://go-review.googlesource.com/121095
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-06-27 17:00:08 +00:00
..
multipart mime/multipart: restore 1.9 handling of missing/empty form-data file name 2018-06-26 23:56:13 +00:00
quotedprintable mime/quotedprintable: accept bytes >= 0x80 2018-06-27 17:00:08 +00:00
testdata
encodedword_test.go
encodedword.go mime: do a pre-allocation in encodeWord 2018-05-15 16:20:14 +00:00
example_test.go
grammar.go
mediatype_test.go mime: ignore key on ParseMediaType when value don't pass RFC 2231 check 2017-08-29 21:10:56 +00:00
mediatype.go all: use strings.Builder instead of bytes.Buffer where appropriate 2018-03-26 23:05:53 +00:00
type_dragonfly.go
type_freebsd.go
type_openbsd.go
type_plan9.go
type_test.go
type_unix.go mime: add wasm architecture 2018-04-13 20:20:12 +00:00
type_windows.go
type.go mime: change *.js mime type to application/javascript, not x-javascript 2018-06-20 22:20:41 +00:00