Pierre-Yves Ritschard 775cc6d632 v2 signer: correctly sort headers
The current code determines the header order for the
"string-to-sign" payload by sorting on the concatenation
of headers and values, whereas it should only happen on the
key.

During multipart uploads, since `x-amz-copy-source-range` and
`x-amz-copy-source` headers are present, V2 signatures fail to
validate since header order is swapped.

This patch reverts to the expected behavior.

Signed-off-by: Pierre-Yves Ritschard <pyr@spootnik.org>
2016-11-02 17:01:34 +01:00
..
2016-10-14 17:03:08 -07:00
2016-11-02 17:01:34 +01:00
2015-05-15 17:56:28 -07:00
2016-10-10 11:37:30 +08:00
2016-06-22 12:40:21 +08:00
2015-08-17 18:51:05 -07:00
2015-08-17 18:51:05 -07:00
2016-07-21 17:16:47 -07:00
2015-05-15 17:05:18 -07:00