mirror of
https://github.com/gohugoio/hugo.git
synced 2025-09-12 22:20:56 -04:00
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.
This commit is contained in:
parent
71fe85df9b
commit
60c6faa317
@ -146,7 +146,7 @@ func fixUrl(s string) (string, error) {
|
|||||||
if !strings.HasPrefix(s, "http://") && !strings.HasPrefix(s, "https://") {
|
if !strings.HasPrefix(s, "http://") && !strings.HasPrefix(s, "https://") {
|
||||||
s = "http://" + s
|
s = "http://" + s
|
||||||
}
|
}
|
||||||
if len(s) > 0 && !strings.HasSuffix(s, "/") {
|
if !strings.HasSuffix(s, "/") {
|
||||||
s = s + "/"
|
s = s + "/"
|
||||||
}
|
}
|
||||||
u, err := url.Parse(s)
|
u, err := url.Parse(s)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user