diff options
author | Anthony Fok <foka@debian.org> | 2015-01-22 17:46:29 -0700 |
---|---|---|
committer | Anthony Fok <foka@debian.org> | 2015-01-22 17:46:47 -0700 |
commit | 60c6faa317d3a07d02effc86b4fe03c9bc84be98 (patch) | |
tree | be99ac64468e3773bab01aec766855c1a6bd6dd0 /commands/server.go | |
parent | 71fe85df9b7193f790fbb5e3af415b176fdb6a4f (diff) |
Revert "Try to fix mysterious test failures on Travis"
This reverts commit 71fe85df9b7193f790fbb5e3af415b176fdb6a4f.
See https://github.com/PuerkitoBio/purell/pull/5
for the cause of the mysterious `go test -v ./...` failure.
Diffstat (limited to 'commands/server.go')
-rw-r--r-- | commands/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/server.go b/commands/server.go index 6ce679c6e..98ea60f4e 100644 --- a/commands/server.go +++ b/commands/server.go @@ -146,7 +146,7 @@ func fixUrl(s string) (string, error) { if !strings.HasPrefix(s, "http://") && !strings.HasPrefix(s, "https://") { s = "http://" + s } - if len(s) > 0 && !strings.HasSuffix(s, "/") { + if !strings.HasSuffix(s, "/") { s = s + "/" } u, err := url.Parse(s) |