Browse Source
[s3] use chunkedReader in PutObjectPartHandler to handle aws-chunked encoding (#6725)
pull/6727/head
Taehyung Lim
4 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
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) |
|
|
|