mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 14:10:25 +03:00
gateway/gcs: send proper error responses for Get/SetBucket policies. (#4338)
Fixes #4323
This commit is contained in:
@@ -70,7 +70,6 @@ func (l *gcsGateway) AnonGetObjectInfo(bucket string, object string) (objInfo Ob
|
||||
defer resp.Body.Close()
|
||||
|
||||
if resp.StatusCode != http.StatusOK {
|
||||
fmt.Println(resp.StatusCode)
|
||||
return objInfo, gcsToObjectError(traceError(anonErrToObjectErr(resp.StatusCode, bucket, object)), bucket, object)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user