mirror of
https://github.com/stashapp/stash.git
synced 2026-02-10 01:12:06 +01:00
Fix https detection with reverse proxy (#2910)
This commit is contained in:
parent
d558902dfb
commit
781a767fb6
1 changed files with 1 additions and 1 deletions
|
|
@ -407,7 +407,7 @@ func BaseURLMiddleware(next http.Handler) http.Handler {
|
|||
ctx := r.Context()
|
||||
|
||||
scheme := "http"
|
||||
if r.TLS != nil {
|
||||
if strings.Compare("https", r.URL.Scheme) == 0 || r.TLS != nil || r.Header.Get("X-Forwarded-Proto") == "https" {
|
||||
scheme = "https"
|
||||
}
|
||||
prefix := getProxyPrefix(r.Header)
|
||||
|
|
|
|||
Loading…
Reference in a new issue