shithub: hugo

Download patch

ref: 71fe85df9b7193f790fbb5e3af415b176fdb6a4f
parent: 01ec44a6b40b7a278d4e3fdc52a4456e80e0950b
author: bep <bjorn.erik.pedersen@gmail.com>
date: Thu Jan 22 19:36:47 EST 2015

Try to fix mysterious test failures on Travis

--- 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 !strings.HasSuffix(s, "/") {
+	if len(s) > 0 && !strings.HasSuffix(s, "/") {
 		s = s + "/"
 	}
 	u, err := url.Parse(s)
--