Revert realProto call in http.go as we're doing it properly
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
38ea55ccc2
commit
be4e9ba7cf
8
http.go
8
http.go
@ -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,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user