set scheme
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user