Fix issue with UNSIGNED payloads.

Additionally also fixes escaping slashes in
temporary multipart names
This commit is contained in:
Remco Verhoef
2017-05-11 11:51:34 -07:00
committed by Harshavardhana
parent 52b500cce9
commit bfff251e2a
3 changed files with 1086 additions and 14 deletions

View File

@@ -272,10 +272,9 @@ func (api gatewayAPIHandlers) PutObjectHandler(w http.ResponseWriter, r *http.Re
return
}
sha256sum := getContentSha256Cksum(r)
sha256sum := ""
if !skipContentSha256Cksum(r) {
sha256sum = r.Header.Get("X-Amz-Content-Sha256")
sha256sum = getContentSha256Cksum(r)
}
// Create object.