always use http scheme for localhost

fixes #758
This commit is contained in:
Nathan Youngman 2015-01-01 08:32:56 -07:00 committed by bep
parent dd1001ceda
commit c6f4b09f65
2 changed files with 2 additions and 1 deletions

View file

@ -152,6 +152,7 @@ func fixUrl(s string) (string, error) {
if serverAppend {
if useLocalhost {
u.Host = fmt.Sprintf("localhost:%d", serverPort)
u.Scheme = "http"
return u.String(), nil
}
host := u.Host