Revert realProto call in http.go as we're doing it properly
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Tyler 2022-03-30 21:01:25 -04:00
parent 38ea55ccc2
commit be4e9ba7cf

View File

@ -44,6 +44,12 @@ func redirectHandler(w http.ResponseWriter, r *http.Request) {
return
}
scheme := r.URL.Scheme
if scheme == "" {
scheme = "https"
}
redirectPath := path.Join(server.Path, r.URL.Path)
if dlMap != nil {
@ -54,7 +60,7 @@ func redirectHandler(w http.ResponseWriter, r *http.Request) {
}
u := &url.URL{
Scheme: realProto(r),
Scheme: scheme,
Host: server.Host,
Path: redirectPath,
}