Add func to write headers only

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
This commit is contained in:
Evgeniy Kulikov 2020-08-20 02:27:13 +03:00
parent 4dd33ff237
commit 5df041f7d7

View file

@ -199,6 +199,10 @@ func WriteSuccessResponseXML(w http.ResponseWriter, response []byte) {
writeResponse(w, http.StatusOK, response, mimeXML) writeResponse(w, http.StatusOK, response, mimeXML)
} }
func WriteSuccessResponseHeadersOnly(w http.ResponseWriter) {
writeResponse(w, http.StatusOK, nil, mimeNone)
}
// Error - Returns S3 error string. // Error - Returns S3 error string.
func (e ErrorResponse) Error() string { func (e ErrorResponse) Error() string {
if e.Message == "" { if e.Message == "" {