mirror of
https://github.com/stashapp/stash.git
synced 2025-12-27 18:56:06 +01:00
Fix proxy prefix replacement (#2694)
This commit is contained in:
parent
5e7bf1c2d7
commit
f3e6cb7b0e
1 changed files with 1 additions and 1 deletions
|
|
@ -227,7 +227,7 @@ func Start() error {
|
|||
|
||||
prefix := getProxyPrefix(r.Header)
|
||||
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue