Skip to content

Update dependency webmock to "~> 3.42.0" - #112

Merged
jdudley1123 merged 1 commit into
mainfrom
renovate/webmock-3.x
Nov 27, 2026
Merged

jdudley1123 merged 1 commit into
mainfrom
renovate/webmock-3.x

Conversation

@renovate

@renovate renovate Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
webmock (changelog) "~> 3.41.0" → "~> 3.42.0" age confidence

Release Notes

bblimke/webmock (webmock)

v3.42.0

Compare Source

  • Fix VCR failing to replay responses recorded with the auto_inflate feature of the http gem (#​1154)

    Previously, for a real request made with HTTP.use(:auto_inflate), after_request callbacks got the inflated body together with the Content-Encoding: gzip header of the compressed one. VCR, hooked into WebMock, recorded both, and replaying the cassette raised Zlib::DataError: incorrect header check, because the feature tried to inflate the body again. With VCR's decode_compressed_response option, recording raised Zlib::GzipFile::Error instead.

    Callbacks now get the inflated body without the Content-Encoding header, as they do for a body that Net::HTTP inflates. A Content-Length header, when the response has one, gives the size of the inflated body. The response the client returns is unchanged, and so are the headers of a response with an empty body, such as one to a HEAD request.

    A cassette recorded this way replays the response with those headers, while the real response keeps the headers of the compressed body.

    This doesn't cover a client that inflates with a subclass of the feature, or responses returned by the caching feature of http 6. Callbacks get those as before.

    Cassettes recorded with older versions that have the Content-Encoding header on an inflated body still fail. Record them again, or remove that header from their responses. Their Content-Length is still that of the compressed body.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@jdudley1123
jdudley1123 merged commit 6f4bbe7 into main Nov 27, 2026
2 checks passed
@jdudley1123
jdudley1123 deleted the renovate/webmock-3.x branch November 27, 2026 15:43
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.

1 participant