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