Browse Source
fix(s3api): make post api upload object default return 204 (#5648)
pull/5652/head
Lê Hoàng Nam
7 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
1 deletions
-
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) |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|