diff --git a/src/mod/dynamicproxy/dpcore/dpcore.go b/src/mod/dynamicproxy/dpcore/dpcore.go index 4566769..23f1034 100644 --- a/src/mod/dynamicproxy/dpcore/dpcore.go +++ b/src/mod/dynamicproxy/dpcore/dpcore.go @@ -330,7 +330,10 @@ func (p *ReverseProxy) ProxyHTTP(rw http.ResponseWriter, req *http.Request, rrr locationRewrite := res.Header.Get("Location") originLocation := res.Header.Get("Location") res.Header.Set("zr-origin-location", originLocation) - + decodedOriginLocation, err := url.PathUnescape(originLocation) + if err == nil { + originLocation = decodedOriginLocation + } if strings.HasPrefix(originLocation, "http://") || strings.HasPrefix(originLocation, "https://") { //Full path //Replace the forwarded target with expected Host diff --git a/src/web/components/httprp.html b/src/web/components/httprp.html index 1809e1a..5310130 100644 --- a/src/web/components/httprp.html +++ b/src/web/components/httprp.html @@ -203,7 +203,7 @@