shithub: hugo

Download patch

ref: 60c6faa317d3a07d02effc86b4fe03c9bc84be98
parent: 71fe85df9b7193f790fbb5e3af415b176fdb6a4f
author: Anthony Fok <[email protected]>
date: Thu Jan 22 12:46:29 EST 2015

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.

--- a/commands/server.go
+++ b/commands/server.go
@@ -146,7 +146,7 @@
 	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)