-
Notifications
You must be signed in to change notification settings - Fork 555
New issue
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
vcr issue_417 - double http headers on curb redirect #550
Open
galori
wants to merge
1
commit into
bblimke:master
Choose a base branch
from
galori:vcr_issue_417_curb_redirect_double_http_headers
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
vcr issue_417 - double http headers on curb redirect #550
galori
wants to merge
1
commit into
bblimke:master
from
galori:vcr_issue_417_curb_redirect_double_http_headers
Conversation
This file contains 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
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:
|
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
debugger
I 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