go/src/mime/multipart
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
..
testdata
example_test.go
formdata.go
formdata_test.go mime/multipart: don't call Read on io.Reader after an error is seen 2016-03-07 19:50:16 +00:00
multipart.go mime/multipart: don't call Read on io.Reader after an error is seen 2016-03-07 19:50:16 +00:00
multipart_test.go
writer.go mime/multipart: sort header keys to ensure reproducible output 2016-05-16 22:55:16 +00:00
writer_test.go mime/multipart: sort header keys to ensure reproducible output 2016-05-16 22:55:16 +00:00