mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-18 20:17:54 +08:00
fix: s3 return BadDigest (#6714)
* fix: s3 return BadDigest * adjust error message checking --------- Co-authored-by: chrislu <chris.lu@gmail.com>
This commit is contained in:

committed by
GitHub

parent
798f797158
commit
fd4154cfed
@@ -126,6 +126,9 @@ func (s3a *S3ApiServer) putToFiler(r *http.Request, uploadUrl string, dataReader
|
||||
|
||||
if postErr != nil {
|
||||
glog.Errorf("post to filer: %v", postErr)
|
||||
if strings.Contains(postErr.Error(), s3err.ErrMsgPayloadChecksumMismatch) {
|
||||
return "", s3err.ErrInvalidDigest
|
||||
}
|
||||
return "", s3err.ErrInternalError
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
|
Reference in New Issue
Block a user