aboutsummaryrefslogtreecommitdiff
path: root/weed/s3api/s3api_handlers.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2023-12-22 11:33:02 -0800
committerchrislu <chris.lu@gmail.com>2023-12-22 11:33:02 -0800
commitee1c9bc314970931ebbc018e70bd7ad39bd84602 (patch)
tree3aa6ad7b157cd4ac93d5a76f9d1aa2fd3ee81e73 /weed/s3api/s3api_handlers.go
parent034db049a080d9a07a8527894e0aa58e8412207e (diff)
parentc278f49bca0b8253914c5490a17ac4b50b8abe2b (diff)
downloadseaweedfs-ee1c9bc314970931ebbc018e70bd7ad39bd84602.tar.xz
seaweedfs-ee1c9bc314970931ebbc018e70bd7ad39bd84602.zip
Merge branch 'master' of https://github.com/seaweedfs/seaweedfs
Diffstat (limited to 'weed/s3api/s3api_handlers.go')
-rw-r--r--weed/s3api/s3api_handlers.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/weed/s3api/s3api_handlers.go b/weed/s3api/s3api_handlers.go
index 81d7017dc..c146a8b15 100644
--- a/weed/s3api/s3api_handlers.go
+++ b/weed/s3api/s3api_handlers.go
@@ -40,6 +40,10 @@ func writeSuccessResponseEmpty(w http.ResponseWriter, r *http.Request) {
s3err.WriteEmptyResponse(w, r, http.StatusOK)
}
+func writeFailureResponse(w http.ResponseWriter, r *http.Request, errCode s3err.ErrorCode) {
+ s3err.WriteErrorResponse(w, r, errCode)
+}
+
func validateContentMd5(h http.Header) ([]byte, error) {
md5B64, ok := h["Content-Md5"]
if ok {