1
0
mirror of https://github.com/golang/go synced 2024-10-04 17:21:20 -06:00
go/src/mime
Simon Thulbourn 28c201860e mime/multipart: sort header keys to ensure reproducible output
Adds a transparent sort to the mime/multipart package, which is
only used in the CreatePart func. This will ensure the ordering
of the MIMEHeader.

The point of this change was to ensure the output would be consistent
and something that could be depended on.

Fixes #13522

Change-Id: I9584ef9dbe98ce97d536d897326914653f8d9ddf
Reviewed-on: https://go-review.googlesource.com/17497
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-05-16 22:55:16 +00:00
..
multipart mime/multipart: sort header keys to ensure reproducible output 2016-05-16 22:55:16 +00:00
quotedprintable mime/quotedprintable: Return a Reader instead of an io.Reader 2015-04-16 16:18:26 +00:00
testdata
encodedword_test.go mime: fix maximum length of encoded-words 2016-03-29 11:19:31 +00:00
encodedword.go all: standardize RFC mention format 2016-04-12 21:07:52 +00:00
example_test.go mime: move examples to external test file 2015-08-22 18:39:29 +00:00
grammar.go all: replace strings.Index with strings.Contains where possible 2016-02-19 01:06:05 +00:00
mediatype_test.go mime: fix parsing of empty string attribute value 2015-12-05 20:14:25 +00:00
mediatype.go all: single space after period. 2016-03-02 00:13:47 +00:00
type_dragonfly.go mime: add mime.types paths for BSDs 2015-06-12 15:51:21 +00:00
type_freebsd.go mime: add mime.types paths for BSDs 2015-06-12 15:51:21 +00:00
type_openbsd.go mime: add mime.types paths for BSDs 2015-06-12 15:51:21 +00:00
type_plan9.go mime: fix mime type file name on Plan 9 2016-05-15 19:56:08 +00:00
type_test.go mime: tighten up and simplify tests 2015-03-30 09:12:03 +00:00
type_unix.go mime: tighten up and simplify tests 2015-03-30 09:12:03 +00:00
type_windows.go mime, time, internal/syscall/windows/registry: use new registry package to simplify code 2015-04-30 04:33:42 +00:00
type.go mime: tighten up and simplify tests 2015-03-30 09:12:03 +00:00