We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug 🐛
When stubbing a :head request and trying to set a custom "Content-Length" via the headers, the value is always set to "0" in the result.
How to replicate it
WebMock.stub(:head, "http://127.0.0.1:9000/bucket-1/file-1?"). to_return(headers: { "Content-Length" => "42" })
Expected
Doing the effective request should return headers with Content-Length set to 42
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug 🐛
When stubbing a :head request and trying to set a custom "Content-Length" via the headers, the value is always set to "0" in the result.
How to replicate it
Expected
Doing the effective request should return headers with Content-Length set to 42
The text was updated successfully, but these errors were encountered: