mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 19:30:36 +08:00
[s3] use chunkedReader in PutObjectPartHandler to handle aws-chunked encoding (#6725)
This commit is contained in:
@@ -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