aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLê Hoàng Nam <lehoangnam040@gmail.com>2024-06-04 20:18:47 +0700
committerGitHub <noreply@github.com>2024-06-04 06:18:47 -0700
commit1f2dc54647f8ab84f2e8e9cd9aa3632760cee869 (patch)
tree7c2f088c3835543c156979807698b491f823554c
parentc5a0ca949faeebaac65b0f12ce5fd489e18bbc8f (diff)
downloadseaweedfs-1f2dc54647f8ab84f2e8e9cd9aa3632760cee869.tar.xz
seaweedfs-1f2dc54647f8ab84f2e8e9cd9aa3632760cee869.zip
fix(s3api): make post api upload object default return 204 (#5648)
-rw-r--r--weed/s3api/s3api_object_handlers_postpolicy.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/weed/s3api/s3api_object_handlers_postpolicy.go b/weed/s3api/s3api_object_handlers_postpolicy.go
index cd80e0ad3..e77d734ac 100644
--- a/weed/s3api/s3api_object_handlers_postpolicy.go
+++ b/weed/s3api/s3api_object_handlers_postpolicy.go
@@ -166,8 +166,10 @@ func (s3a *S3ApiServer) PostPolicyBucketHandler(w http.ResponseWriter, r *http.R
s3err.PostLog(r, http.StatusCreated, s3err.ErrNone)
case "200":
s3err.WriteEmptyResponse(w, r, http.StatusOK)
+ case "204":
+ s3err.WriteEmptyResponse(w, r, http.StatusNoContent)
default:
- writeSuccessResponseEmpty(w, r)
+ s3err.WriteEmptyResponse(w, r, http.StatusNoContent)
}
}