forked from TrueCloudLab/frostfs-s3-gw
Add func to write headers only
Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
This commit is contained in:
parent
4dd33ff237
commit
5df041f7d7
1 changed files with 4 additions and 0 deletions
|
@ -199,6 +199,10 @@ func WriteSuccessResponseXML(w http.ResponseWriter, response []byte) {
|
|||
writeResponse(w, http.StatusOK, response, mimeXML)
|
||||
}
|
||||
|
||||
func WriteSuccessResponseHeadersOnly(w http.ResponseWriter) {
|
||||
writeResponse(w, http.StatusOK, nil, mimeNone)
|
||||
}
|
||||
|
||||
// Error - Returns S3 error string.
|
||||
func (e ErrorResponse) Error() string {
|
||||
if e.Message == "" {
|
||||
|
|
Loading…
Reference in a new issue