mirror of
https://github.com/distribution/distribution.git
synced 2025-06-27 07:50:03 +00:00
fixup! v2 signer: correctly sort headers
Signed-off-by: Pierre-Yves Ritschard <pyr@spootnik.org>
This commit is contained in:
parent
775cc6d632
commit
f1cf7de788
@ -164,7 +164,7 @@ func (v2 *signer) Sign() error {
|
||||
}
|
||||
if len(sharray) > 0 {
|
||||
sort.StringSlice(sharray).Sort()
|
||||
for _, h := range(sharray) {
|
||||
for _, h := range sharray {
|
||||
sarray = append(sarray, smap[h])
|
||||
}
|
||||
xamz = strings.Join(sarray, "\n") + "\n"
|
||||
|
Loading…
Reference in New Issue
Block a user