mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-27 12:49:41 +08:00
fix(s3api): make post api upload object default return 204 (#5648)
This commit is contained in:
parent
c5a0ca949f
commit
1f2dc54647
@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user