sigv4: Trim and shrink spaces in headers values (#3162)

This commit is contained in:
Anis Elleuch
2016-11-04 00:41:25 +01:00
committed by Harshavardhana
parent 4503491a0a
commit d9bab6b3bd
3 changed files with 45 additions and 1 deletions

View File

@@ -68,7 +68,7 @@ func getCanonicalHeaders(signedHeaders http.Header, host string) string {
if idx > 0 {
buf.WriteByte(',')
}
buf.WriteString(v)
buf.WriteString(signV4TrimAll(v))
}
buf.WriteByte('\n')
}