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.
master
Harshavardhana 7 years ago committed by kannappanr
parent 120b061966
commit 1b7b8f14c9
  1. 2
      cmd/object-handlers.go

@ -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))
}
}

Loading…
Cancel
Save