Set appropriate encryption headers in HEAD object response (#5596)

Currently we don't set two SSE-C specific headers fix it
for AWS S3 compatibility.
This commit is contained in:
Harshavardhana 2018-03-01 14:16:40 -08:00 committed by kannappanr
parent 120b061966
commit 1b7b8f14c9

View File

@ -256,6 +256,8 @@ func (api objectAPIHandlers) HeadObjectHandler(w http.ResponseWriter, r *http.Re
writeErrorResponse(w, ErrSSEEncryptedObject, r.URL)
return
}
w.Header().Set(SSECustomerAlgorithm, r.Header.Get(SSECustomerAlgorithm))
w.Header().Set(SSECustomerKeyMD5, r.Header.Get(SSECustomerKeyMD5))
}
}