Use headersSent instead of _header#129
Conversation
|
Hm, I just noticed that I branched from my other changes. Should I remove those changes from this PR? |
|
Hi @maritz I can try to cut them out myself during the merge, but if you can remove them, that may be good especially in case something else changes (either in the other PR or between that PR merging and the major release to include this change). |
d7bb81b to
cd957aa
Compare
de4f632 to
24a6740
Compare
|
@dougwilson I rebased and cut out the extra commits. |
lamweili
left a comment
There was a problem hiding this comment.
Would this change be better?
It will be backwards compatible with Node.js v0.8 and not incur a semver major.
|
For background information regarding We can also add test cases to assert the equivalence (if really required). |
…/use_headersSent_instead_of__header
@lamweili I don't think we need a test for this, this change was also made in pillarjs/finalhandler#15. |
All good, was coming from test/code coverage perspective. |
|
thanks @maritz |
As discussed in #127 this PR now includes the changes that do break node v0.8 and has tests.
I did not remove the travis config for v0.8 since I'm not sure that's something that should be in a PR.