From f84c13dabdef8790c193616fa36d46efc3791d24 Mon Sep 17 00:00:00 2001 From: LHHDZ Date: Tue, 13 Dec 2022 21:48:50 +0800 Subject: [PATCH] fix response not allowed (#4057) --- weed/s3api/s3api_object_multipart_handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/s3api/s3api_object_multipart_handlers.go b/weed/s3api/s3api_object_multipart_handlers.go index b08a1e797..24d7656b5 100644 --- a/weed/s3api/s3api_object_multipart_handlers.go +++ b/weed/s3api/s3api_object_multipart_handlers.go @@ -121,7 +121,7 @@ func (s3a *S3ApiServer) AbortMultipartUploadHandler(w http.ResponseWriter, r *ht glog.V(2).Info("AbortMultipartUploadHandler", string(s3err.EncodeXMLResponse(response))) //https://docs.aws.amazon.com/AmazonS3/latest/API/API_AbortMultipartUpload.html - s3err.WriteXMLResponse(w, r, http.StatusNoContent, response) + s3err.WriteEmptyResponse(w, r, http.StatusNoContent) s3err.PostLog(r, http.StatusNoContent, s3err.ErrNone) }