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

View File

@@ -20,7 +20,6 @@ import (
"crypto/md5"
"encoding/base64"
"encoding/hex"
"errors"
"fmt"
"hash"
"io"
@@ -169,10 +168,6 @@ func newAzureLayer(host string) (GatewayLayer, error) {
}
creds := serverConfig.GetCredential()
if !creds.IsValid() && !globalIsEnvCreds {
return nil, errors.New("Azure backend account and secret keys should be set through ENVs")
}
c, err := storage.NewClient(creds.AccessKey, creds.SecretKey, endpoint, globalAzureAPIVersion, secure)
if err != nil {
return &azureObjects{}, err