mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-23 22:40:39 +02:00
[s3] use chunkedReader in PutObjectPartHandler to handle aws-chunked encoding (#6725)
This commit is contained in:
1 parent
8c1cb203fa
commit
ea941462f9
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user