Skip to content

Conversation

@misdoro
Copy link
Contributor

@misdoro misdoro commented Oct 27, 2025

Since socketry/protocol-http#84 (protocol-http 0.51.0), internal dependency of async-http gem
the tests were failing complaining about a duplicate content-length header.

CI: allow running tests on all push events, useful for running tests before opening a PR

  • Remove the version pin of protocol-http gem
  • Split the request and response sample headers in the tests
  • explicitly remove the stubbed content-length response header in async-http protocol adapter

Follow-up of #1107

Recent versions of async-http (and its sub-libraries like request-http) are strict about content-length header:

- Get requests should not have any content-length request header provided
- POST requests with the body and all responses with stringio body have the content-length header appended automagically
@bblimke
Copy link
Owner

bblimke commented Oct 29, 2025

You're on fire with these PRs @misdoro! Thanks for all the work on improving WebMock 👍

@bblimke bblimke merged commit ea4cea3 into bblimke:master Oct 29, 2025
9 checks passed
@Earlopain
Copy link
Contributor

FYI, I see that this was released but I don't see the bump commit anywhere in the main branch: 56cb661

@bblimke
Copy link
Owner

bblimke commented Oct 30, 2025

@Earlopain thank you! Just pushed it.

@misdoro
Copy link
Contributor Author

misdoro commented Oct 30, 2025

@bblimke it was the last one 😅 , I won't bother you any more 👼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants