set scheme
parent
a056b045a9
commit
810fc0f44c
|
|
@ -79,6 +79,9 @@ func whoGet(namespace string, g storage.RateLimitedGraph, w http.ResponseWriter,
|
||||||
one := ones[0]
|
one := ones[0]
|
||||||
|
|
||||||
baseUrl := *r.URL
|
baseUrl := *r.URL
|
||||||
|
if baseUrl.Scheme == "" {
|
||||||
|
baseUrl.Scheme = "http"
|
||||||
|
}
|
||||||
if baseUrl.Host == "" {
|
if baseUrl.Host == "" {
|
||||||
baseUrl.Host = r.Host
|
baseUrl.Host = r.Host
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue