-
-
Notifications
You must be signed in to change notification settings - Fork 738
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
matchHeader doesn't work in Node 8.x #925
Comments
I'm seeing this issue as well. It looks like this is a result of nodejs/node#10941 (nodejs/node@b377034359a specifically) which made the Is there a reason why |
Replacing the |
that requires you to specify all the headers though, right? |
@dickeyxxx doesn't look like it does, I don't mock all my headers and the tests are working just fine with the mentioned change. |
good to know! thank you! |
Nock is failing at Node 8 right now, see eg: nock/nock#925
any plans of fixing this soon? |
It looks like this is fixed in the latest commit to master: 35c76e3 |
Will be released end of weekend |
v9.0.14 out with @martinkuba's fix. Huge thanks to him for doing the work. Closing this issue. Will re-open if we get reports that issue persists. |
resolved, @ianwsperber @martinkuba thanks! |
9.0.14 includes nock/nock#929 which fixes nock/nock#922 and nock/nock#925 which prevented nock from working on Node 8 and later. Now test everything on all supported Node versions. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue and add a reference to this one if it’s related. Thank you! |
matchHeader
no longer functions as expected, neither when providing value as a string or a function. The culprit seems to beoptions.getHeader
returningundefined
for every header name becauserequest._headers
(v9.0.13) is not set anymore.The text was updated successfully, but these errors were encountered: