Browse Source

[s3] use chunkedReader in PutObjectPartHandler to handle aws-chunked encoding (#6725)

pull/6727/head
Taehyung Lim 4 weeks ago
committed by GitHub
parent
commit
ea941462f9
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      weed/s3api/s3api_object_handlers_multipart.go

2
weed/s3api/s3api_object_handlers_multipart.go

@ -234,7 +234,7 @@ func (s3a *S3ApiServer) PutObjectPartHandler(w http.ResponseWriter, r *http.Requ
if s3a.iam.isEnabled() {
var s3ErrCode s3err.ErrorCode
switch rAuthType {
case authTypeStreamingSigned:
case authTypeStreamingSigned, authTypeStreamingUnsigned:
dataReader, s3ErrCode = s3a.iam.newChunkedReader(r)
case authTypeSignedV2, authTypePresignedV2:
_, s3ErrCode = s3a.iam.isReqAuthenticatedV2(r)

Loading…
Cancel
Save