From 4075dcb204c147f2a7d0fdfb799d62a7f692cf8f Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Thu, 22 Jan 2015 17:46:29 -0700 Subject: [PATCH] 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. --- commands/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/server.go b/commands/server.go index 6ce679c6e58..98ea60f4e59 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)