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

This commit is contained in:
Taehyung Lim
2025-04-24 07:45:46 +09:00
committed by GitHub
parent 8c1cb203fa
commit ea941462f9

View File

@@ -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)