mirror of
https://github.com/versity/versitygw.git
synced 2026-08-01 04:46:14 +00:00
Merge pull request #450 from versity/ben/zero_len_chunked_put
fix: zero len put error when content length value not defined
This commit is contained in:
@@ -909,6 +909,9 @@ func (c S3ApiController) PutActions(ctx *fiber.Ctx) error {
|
||||
|
||||
// Other headers
|
||||
contentLengthStr := ctx.Get("Content-Length")
|
||||
if contentLengthStr == "" {
|
||||
contentLengthStr = "0"
|
||||
}
|
||||
bucketOwner := ctx.Get("X-Amz-Expected-Bucket-Owner")
|
||||
|
||||
grants := grantFullControl + grantRead + grantReadACP + granWrite + grantWriteACP
|
||||
|
||||
Reference in New Issue
Block a user