Merge pull request #860 from harshavardhana/pr_out_let_localhost_also_have_its_access_keys_and_secret_id

This commit is contained in:
Harshavardhana
2015-07-09 04:52:22 +00:00
+2 -3
View File
@@ -47,9 +47,8 @@ func getHostConfig(URL string) (*hostConfig, error) {
}
return hostCfg, nil
}
// No host matching or keys needed for localhost and 127.0.0.1 URL's skip them
if strings.Contains(url.Host, "localhost") || strings.Contains(url.Host, "127.0.0.1") {
// No host matching or keys needed for 127.0.0.1 URL's skip them
if strings.Contains(url.Host, "127.0.0.1") {
hostCfg := &hostConfig{
AccessKeyID: "",
SecretAccessKey: "",