Fix proxy prefix replacement (#2694)

This commit is contained in:
WithoutPants
2022-06-27 09:53:40 +10:00
committed by GitHub
parent 5e7bf1c2d7
commit f3e6cb7b0e

View File

@@ -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