Open FlorentinTh opened 4 years ago
Support it. Great. Well done.
Yeah but it needs improvement to support node < 7.x I found the solution!
I added a ternary variable assignment to check either the new response.getHeaders()
is available (for node >= 7.x) or not (node < 7.x). In the last case, it still using the old response.headers
@indutny @anandsuresh @eee-c @anandsuresh @daviddias
Any news on this issue? Thanks
Nope. No one seems to be available to help on tests with node > 10 that I don’t have time to go deeper in to understand. Moreover they have to allow pull request also with no one responding...
@daviddias Can you please take a look and invest 5 mins of your time here? It's an easy fix and people really need it to move forward. Thanks a lot, it will be highly appreciated!
Thanks for the nudge @franz-josef-kaiser. I'm not actively maintaining this package for a very long time, having passed that baton to @jacobheun. Let me ping him so that he can review it better :)
Hi @FlorentinTh, thanks for the fix!
I ran test/client-test.js separately with
npm exec mocha test/client-test.js
on Node v14.17.4 (LTS) and noticed that POST requests and their "after each" hooks are failing in SSL mode. If I move the it('should send GET request' test after it('should send POST request', the tests are passing. So GET after POST is working, but the other way it isn't. In general the order in which the tests are executed should not matter, probably some resource is not cleaned up properly.
I hope the maintainers can take a look at this.
Nice work @attila-boros. At least you figured out the issue with failing tests giving less work to the maintainers. I hope so the PR will be merged and released one day.
@indutny Similar to https://github.com/spdy-http2/http-deceiver/pull/7#issuecomment-947454875, can you review this as well?
/cc @alexander-akait
@jacobheun @daviddias Any news on this one?
cc: @jacobheun @daviddias @indutny
Wanted to bump this as well as I'm getting warnings on my http2/express server using the node-spdy
package!
Also, does anyone on this thread know the potential effects of this deprecation? Can it affect/drop headers or is more along the lines of using an existing (but unsupported) API? Thanks!
@indutny would you take a few minutes to review this PR or grant some of us the permission to accept PR (and publish on npm)?
Otherwise I'm willing to take the load to fork this package and get this PR published to npm. Appreciate the contribution from everyone 🙏
Just a simple change from :
this._headers
tothis.getHeaders()
in line 18 ofresponse.js
. It should be enough to remove the warning[DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
for users of Node > 10.x