summaryrefslogtreecommitdiffstats
path: root/commands/server.go
diff options
context:
space:
mode:
authorAnthony Fok <foka@debian.org>2015-01-22 17:46:29 -0700
committerAnthony Fok <foka@debian.org>2015-01-22 17:46:47 -0700
commit60c6faa317d3a07d02effc86b4fe03c9bc84be98 (patch)
treebe99ac64468e3773bab01aec766855c1a6bd6dd0 /commands/server.go
parent71fe85df9b7193f790fbb5e3af415b176fdb6a4f (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.go2
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)