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
Ignore nil headers in Env's Util::Headers' KeyMap for 0.9.x #728
Conversation
This prevents the net_http adater from freaking out when encountering a header with a Nil value.
@olleolleolle I'm a little confused by the test suite. It was failing before I started my changes. Is it broken for 0.9.x branch? |
@f3ndot Yes, it seems that the 0.9 needs to hold back See https://github.com/lostisland/faraday/blob/0.9/Gemfile#L17 |
Related: #729 |
Hi @f3ndot, |
@iMacTia it's an issue with a legacy monolith we're trying to carve up and deprecate. Faraday has a dependency that, in 0.10 and later, resolve to a version who's minimum is greater than approximately 15 other gems utilized in our application (some of which are in house). iirc, it was I attempted to shave the yak of cascading gem updates before giving up and solving the issue I was experiencing directly in the 0.9.x branch |
Seems like tests are failing for the same reason as #731. |
Moreover, I'd ask you to provide more details about your gem dependencies issues. Faraday's only dependency seems to be |
Hi @f3ndot, apologies for the delay but the issue on Travis was tricky to solve and took me some time! Please pull changes from master into your branch and we should see green tests 👍 Can you please update me on your situation? Are you still depending on Faraday 0.9 or were you able to update? Did you have a look at |
Heya @iMacTia, so I was able to sidestep the issue personally with some tweaking in my application. We're still using Faraday 0.9 for the application. For context, this was our particular problem:
Interestingly, I didn't run into the issues with mime-types redoing this list for you. So that must've been user error earlier on my part. I probably tried to select a particular version of In any event, we're not really in a position of changing over to a newer version of Google Drive API calls in our app just so I can get a newer version of Faraday-- Hence the submission of this PR. I'm happy to close this out if you don't want the code cluttered. |
That's OK, I don't mind this little change, but we should make the tests green again. |
Closing in favour of #739 |
This prevents the net_http adapter from freaking out when encountering a header with a Nil value.
I am unsure where the best filtering logic should live. If you prefer a different class to be responsible for this, I'm happy to make changes to my approach.
Attempts to solve #727