Revert realProto call in http.go as we're doing it properly
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
scheme := r.URL.Scheme
|
||||||
|
|
||||||
|
if scheme == "" {
|
||||||
|
scheme = "https"
|
||||||
|
}
|
||||||
|
|
||||||
redirectPath := path.Join(server.Path, r.URL.Path)
|
redirectPath := path.Join(server.Path, r.URL.Path)
|
||||||
|
|
||||||
if dlMap != nil {
|
if dlMap != nil {
|
||||||
|
@ -54,7 +60,7 @@ func redirectHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
}
|
}
|
||||||
|
|
||||||
u := &url.URL{
|
u := &url.URL{
|
||||||
Scheme: realProto(r),
|
Scheme: scheme,
|
||||||
Host: server.Host,
|
Host: server.Host,
|
||||||
Path: redirectPath,
|
Path: redirectPath,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue