-
Notifications
You must be signed in to change notification settings - Fork 252
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
fix to solve issue with node v.0.12 #42
Conversation
Can you add a test that proves this code is needed? -A test that would fail if the patch is not applied? |
the problem is that the existing tests do not pass with 0.12... |
Oh I see. Maybe update the travis config would surface that? |
@adrai I've updated the travis config to use 0.12.0. Could you rebase your PR with master so we can see if all the tests will pass on 0.12.0? Thanks |
May you fix the existing tests? |
Yep I'll do that and let you know when it's done. Thanks! |
I've updated the tests so they run on Node.js 0.12.0 and Io.js 1.1.0. Now you should be able to add a failing test demonstrating why your proposed patch is needed. |
if a header value is undefined it would crash on 0.12 |
I'm sure it does, but I still need a failing test to prove it. This will also prevent regressions in the future if someone refactors your code and breaks it. The commits in this PR are a bit messy. It would be better if you could rebase instead of merging. Please fix that or send a new PR. |
A new pull req is not a problem... but how should I do a failing test without mocking https://github.com/joyent/node/blob/master/lib/_http_outgoing.js#L333 ? |
I missed that you had added a Yes, please ass that in a separate test, to make it explicit that we're testing this behaviour. Thanks! |
solves: #41