vcr issue_417 - double http headers on curb redirect#550
Open
galori wants to merge 1 commit intobblimke:masterfrom
Open
vcr issue_417 - double http headers on curb redirect#550galori wants to merge 1 commit intobblimke:masterfrom
galori wants to merge 1 commit intobblimke:masterfrom
Conversation
Author
|
This is an excerpt from my comments in the vcr issue: This is what comes back from curb: And then Webmock parses that output and creates the following Webmock::Response structure out of it: |
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.
Hello,
I'm working on an issue in https://github.com/vcr/vcr (specifically vcr/vcr#417) and arrived here as part of my investigation.
A user opened an issue on our issues list in vcr, reporting "double entries" for various HTTP headers when hooking vcr into webmock with curb as the underlying HTTP library.
While investigating that issue and after getting pretty deep into the weeds with
debuggerI concluded that the core of the problem is that curb is returning double HTTP headers to WebMock which is then passing those on to vcr, when an HTTP redirect (301 or 302) happens.Based on @bblimke and @myronmarston comments on that issue it is definitely not by design in vcr or in webmock. I'm not sure about curb yet.
The issue is already open on vcr, I'm opening this issue here to track it on this end as well.
I created this fork and added failing tests to showcase the problem. The failing test output is below.
(obviously, this PR is not ready to be pulled in, it is just a set of failing tests at the moment).
My main questions are:
Thanks,
Gal