set scheme

This commit is contained in:
breel
2020-07-31 23:20:02 -06:00
parent a056b045a9
commit 810fc0f44c

View File

@@ -79,6 +79,9 @@ func whoGet(namespace string, g storage.RateLimitedGraph, w http.ResponseWriter,
one := ones[0]
baseUrl := *r.URL
if baseUrl.Scheme == "" {
baseUrl.Scheme = "http"
}
if baseUrl.Host == "" {
baseUrl.Host = r.Host
}