Merge pull request #1402 from harshavardhana/local

local: alias localhost:9000 - fixes #1383
This commit is contained in:
Harshavardhana
2015-11-17 18:22:23 -08:00
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -225,7 +225,7 @@ func newConfigV6() *configV6 {
aliases["dl"] = "https://dl.minio.io:9000"
aliases["gcs"] = "https://storage.googleapis.com"
aliases["play"] = "https://play.minio.io:9000"
aliases["localhost"] = "http://localhost:9000"
aliases["local"] = "http://localhost:9000"
conf.Aliases = aliases
return conf
}
+2 -2
View File
@@ -137,7 +137,7 @@ func (s *TestSuite) TestNewConfigV6(c *C) {
"https://play.minio.io:9000",
},
{
"localhost",
"local",
"http://localhost:9000",
},
}
@@ -182,7 +182,7 @@ func (s *TestSuite) TestHostConfig(c *C) {
}
func (s *TestSuite) TestArgs2URL(c *C) {
URLs := []string{"localhost", "s3", "play", "playgo", "play.go", "https://s3-us-west-2.amazonaws.com"}
URLs := []string{"local", "s3", "play", "playgo", "play.go", "https://s3-us-west-2.amazonaws.com"}
expandedURLs, err := args2URLs(URLs)
c.Assert(err, IsNil)
c.Assert(expandedURLs[0], Equals, "http://localhost:9000")