You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the issue
No option to suppress content-length header on the response of forwarded request
What you are trying to do
Response of forwarded request is always setting Content-length and Connection headers, this is causing issues on our application
MockServer version
The version you are using 5.11.1 jar
To Reproduce
Steps to reproduce the issue:
Run mock server as a java proxy from command line 5.11.1 jar
Do not define any expectations, such that request gets forwarded to proxyRemoteHost
Verify Response
Expected behaviour
Adding Content-length and Connection headers
There are ways to suppress these headers if mocked response is defined in the expectation but not on the forwarded request.
Please suggest if there is any work around for this.
Thanks
The text was updated successfully, but these errors were encountered:
I've now implemented a fix so Content-Length is always removed (see #914), however, I now release there was always a way to suppress these headers, which was included in the documented examples, as follows:
Describe the issue
No option to suppress content-length header on the response of forwarded request
What you are trying to do
Response of forwarded request is always setting Content-length and Connection headers, this is causing issues on our application
MockServer version
The version you are using 5.11.1 jar
To Reproduce
Steps to reproduce the issue:
Expected behaviour
Adding Content-length and Connection headers
There are ways to suppress these headers if mocked response is defined in the expectation but not on the forwarded request.
Please suggest if there is any work around for this.
Thanks
The text was updated successfully, but these errors were encountered: