commit 60c6faa317d3a07d02effc86b4fe03c9bc84be98
parent 71fe85df9b7193f790fbb5e3af415b176fdb6a4f
Author: Anthony Fok <foka@debian.org>
Date: Thu, 22 Jan 2015 17:46:29 -0700
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:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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)