mirror of
https://github.com/stashapp/stash.git
synced 2026-01-07 08:05:50 +01:00
Fix invalid baseurl if host header already contains port (#2005)
This commit is contained in:
parent
df7d1427d6
commit
2a5afecc77
1 changed files with 1 additions and 1 deletions
|
|
@ -352,7 +352,7 @@ func BaseURLMiddleware(next http.Handler) http.Handler {
|
|||
|
||||
port := ""
|
||||
forwardedPort := r.Header.Get("X-Forwarded-Port")
|
||||
if forwardedPort != "" && forwardedPort != "80" && forwardedPort != "8080" {
|
||||
if forwardedPort != "" && forwardedPort != "80" && forwardedPort != "8080" && forwardedPort != "443" && !strings.Contains(r.Host, ":") {
|
||||
port = ":" + forwardedPort
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue