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

This commit is contained in:
Tyler 2022-03-30 21:01:25 -04:00
parent 38ea55ccc2
commit be4e9ba7cf
1 changed files with 7 additions and 1 deletions

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,
}