]> Cypherpunks repositories - gostls13.git/commit
mime/multipart: sort header keys to ensure reproducible output
authorSimon Thulbourn <simon+github@thulbourn.com>
Mon, 7 Dec 2015 16:36:11 +0000 (16:36 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 16 May 2016 22:55:16 +0000 (22:55 +0000)
commit28c201860e0838b10972e805582007f9eb61e7ac
treed3494115a78374c7dc863c5aad76a64b16d8e53f
parent99ef42fe7b310749d83f9b76d814e78fe8139b42
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>
src/mime/multipart/writer.go
src/mime/multipart/writer_test.go