Browse Source

refactor

pull/6037/head
chrislu 3 months ago
parent
commit
50e22864cf
  1. 3
      weed/s3api/s3err/error_handler.go

3
weed/s3api/s3err/error_handler.go

@ -49,8 +49,7 @@ func WriteErrorResponse(w http.ResponseWriter, r *http.Request, errorCode ErrorC
apiError := GetAPIError(errorCode)
errorResponse := getRESTErrorResponse(apiError, r.URL.Path, bucket, object)
encodedErrorResponse := EncodeXMLResponse(errorResponse)
WriteResponse(w, r, apiError.HTTPStatusCode, encodedErrorResponse, MimeXML)
WriteXMLResponse(w, r, apiError.HTTPStatusCode, errorResponse)
PostLog(r, apiError.HTTPStatusCode, errorCode)
}

Loading…
Cancel
Save