gateway/gcs: send proper error responses for Get/SetBucket policies. (#4338)

Fixes #4323
This commit is contained in:
Harshavardhana
2017-05-12 16:49:14 -07:00
parent 5d602034ea
commit 91c7bb65c5
2 changed files with 4 additions and 14 deletions
-1
View File
@@ -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)
}