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
The response header does not reflect the correct version for HTTP2 requests. Even though, wiremock replies in h2 but the version in the response header shows "HTTP/1.1 200". This is caused by the hardcoded value in the toString() method of Response.java class
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
**sb.append("HTTP/1.1 ")**.append(status).append("\n");
sb.append(headers).append("\n");
// no longer printing body
return sb.toString();
}
Environment
Which version of WireMock you're using -
2.31.0 standalone
How you're starting and configuring WireMock, including configuration or CLI the command line
Starting wiremock in standalone mode inside a docker container
Steps to reproduce
Insert some request-response data in wiremock
Try to make a request with h2
See the response on the console. You get the response like below for the h2 requests
…1890)
* change to be reverted
* remove http protocol hardcoded value in Response.java
* revert readme change
* format the files
* handle review comments
Co-authored-by: poojitha <poojitha.dubba@thoughtworks.com>
Issue
The response header does not reflect the correct version for HTTP2 requests. Even though, wiremock replies in h2 but the version in the response header shows "HTTP/1.1 200". This is caused by the hardcoded value in the toString() method of Response.java class
Environment
Which version of WireMock you're using -
2.31.0 standalone
How you're starting and configuring WireMock, including configuration or CLI the command line
Starting wiremock in standalone mode inside a docker container
Steps to reproduce
The text was updated successfully, but these errors were encountered: