From: Anthony Fok Date: Fri, 23 Jan 2015 00:46:29 +0000 (-0700) Subject: Revert "Try to fix mysterious test failures on Travis" X-Git-Tag: v0.13~127 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=60c6faa317d3a07d02effc86b4fe03c9bc84be98;p=brevno-suite%2Fhugo 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. --- diff --git a/commands/server.go b/commands/server.go index 6ce679c6..98ea60f4 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)