|
|
@ -179,8 +179,9 @@ func (s3a *S3ApiServer) PutObjectPartHandler(w http.ResponseWriter, r *http.Requ |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
rAuthType := getRequestAuthType(r) |
|
|
|
dataReader := r.Body |
|
|
|
if s3a.iam.isEnabled() { |
|
|
|
rAuthType := getRequestAuthType(r) |
|
|
|
var s3ErrCode ErrorCode |
|
|
|
switch rAuthType { |
|
|
|
case authTypeStreamingSigned: |
|
|
@ -194,6 +195,7 @@ func (s3a *S3ApiServer) PutObjectPartHandler(w http.ResponseWriter, r *http.Requ |
|
|
|
writeErrorResponse(w, s3ErrCode, r.URL) |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
defer dataReader.Close() |
|
|
|
|
|
|
|
uploadUrl := fmt.Sprintf("http://%s%s/%s/%04d.part?collection=%s", |
|
|
|