Merge branch 'master' into head_check_all_chunks

This commit is contained in:
Konstantin Lebedev
2021-05-24 12:28:19 +05:00
committed by GitHub
35 changed files with 411 additions and 75 deletions

View File

@@ -62,6 +62,12 @@ func (s3a *S3ApiServer) PutObjectHandler(w http.ResponseWriter, r *http.Request)
writeErrorResponse(w, s3ErrCode, r.URL)
return
}
} else {
rAuthType := getRequestAuthType(r)
if authTypeAnonymous != rAuthType {
writeErrorResponse(w, s3err.ErrAuthNotSetup, r.URL)
return
}
}
defer dataReader.Close()