mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Try to fix mysterious test failures on Travis
This commit is contained in:
parent
01ec44a6b4
commit
71fe85df9b
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ func fixUrl(s string) (string, error) {
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue