Repository navigation
Update dependency webmock to "~> 3.42.0" - #112
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
"~> 3.41.0"→"~> 3.42.0"Release Notes
bblimke/webmock (webmock)
v3.42.0Compare Source
Fix VCR failing to replay responses recorded with the
auto_inflatefeature of thehttpgem (#1154)Previously, for a real request made with
HTTP.use(:auto_inflate),after_requestcallbacks got the inflated body together with theContent-Encoding: gzipheader of the compressed one. VCR, hooked into WebMock, recorded both, and replaying the cassette raisedZlib::DataError: incorrect header check, because the feature tried to inflate the body again. With VCR'sdecode_compressed_responseoption, recording raisedZlib::GzipFile::Errorinstead.Callbacks now get the inflated body without the
Content-Encodingheader, as they do for a body that Net::HTTP inflates. AContent-Lengthheader, 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
cachingfeature ofhttp6. Callbacks get those as before.Cassettes recorded with older versions that have the
Content-Encodingheader on an inflated body still fail. Record them again, or remove that header from their responses. TheirContent-Lengthis still that of the compressed body.Configuration
📅 Schedule: (UTC)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.