Skip to content

Commit

Permalink
Revert "Try to fix mysterious test failures on Travis"
Browse files Browse the repository at this point in the history
This reverts commit 71fe85d.

See PuerkitoBio/purell#5
for the cause of the mysterious `go test -v ./...` failure.
  • Loading branch information
anthonyfok authored and tychoish committed Aug 13, 2017
1 parent c8ace7f commit 4075dcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4075dcb

Please sign in to comment.