diff --git a/cmd/routed/main.go b/cmd/routed/main.go index 8b5bde1..be3b2ef 100644 --- a/cmd/routed/main.go +++ b/cmd/routed/main.go @@ -55,6 +55,7 @@ func main() { hs := &http.Server{ Handler: middleware.Trace(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + r.URL.Host = r.Host r.URL.Scheme = "https" http.Redirect(w, r, r.URL.String(), http.StatusPermanentRedirect) })),