fix(s3api): make post api upload object default return 204 (#5648)

This commit is contained in:
Lê Hoàng Nam 2024-06-04 20:18:47 +07:00 committed by GitHub
parent c5a0ca949f
commit 1f2dc54647
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
}
}