mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Fix proxy prefix replacement (#2694)
This commit is contained in:
@@ -227,7 +227,7 @@ func Start() error {
|
|||||||
|
|
||||||
prefix := getProxyPrefix(r.Header)
|
prefix := getProxyPrefix(r.Header)
|
||||||
if prefix != "" {
|
if prefix != "" {
|
||||||
r.URL.Path = strings.Replace(r.URL.Path, prefix, "", 1)
|
r.URL.Path = strings.TrimPrefix(r.URL.Path, prefix)
|
||||||
}
|
}
|
||||||
r.URL.Path = uiRootDir + r.URL.Path
|
r.URL.Path = uiRootDir + r.URL.Path
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user