gateway/gcs: Complete minio browser support for gcs. (#4552)

Fixes #4460
This commit is contained in:
Harshavardhana
2017-06-19 19:45:13 -07:00
committed by GitHub
parent 3928c1e14c
commit 5a78266821
4 changed files with 14 additions and 14 deletions
-4
View File
@@ -17,7 +17,6 @@
package cmd
import (
"errors"
"io"
"net/http"
"path"
@@ -120,9 +119,6 @@ func newS3Gateway(host string) (GatewayLayer, error) {
}
creds := serverConfig.GetCredential()
if !creds.IsValid() && !globalIsEnvCreds {
return nil, errors.New("S3 backend account and secret keys should be set through ENVs")
}
// Initialize minio client object.
client, err := minio.NewCore(endpoint, creds.AccessKey, creds.SecretKey, secure)