diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c0e7625..ccea6e6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ This changelog keeps track of work items that have been completed and are ready - **General**: Add new user agent probe ([#862](https://github.com/kedacore/http-add-on/issues/862)) - **General**: Increase ScaledObject polling interval to 15 seconds ([#799](https://github.com/kedacore/http-add-on/issues/799)) +- **General**: Set forward request RawPath to original request RawPath ([#864](https://github.com/kedacore/http-add-on/issues/864)) ### Deprecations diff --git a/interceptor/handler/upstream.go b/interceptor/handler/upstream.go index b1260523..e556be60 100644 --- a/interceptor/handler/upstream.go +++ b/interceptor/handler/upstream.go @@ -43,6 +43,7 @@ func (uh *Upstream) ServeHTTP(w http.ResponseWriter, r *http.Request) { superDirector(req) req.URL = stream req.URL.Path = r.URL.Path + req.URL.RawPath = r.URL.RawPath req.URL.RawQuery = r.URL.RawQuery // delete the incoming X-Forwarded-For header so the proxy // puts its own in. This is also important to prevent IP spoofing