Skip to content
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 this pointer on "socket" event #769

Merged
merged 1 commit into from
Feb 9, 2017
Merged

Fix this pointer on "socket" event #769

merged 1 commit into from
Feb 9, 2017

Conversation

RubenVerborgh
Copy link
Contributor

This makes behavior consistent with the Node.js HTTP module
(https://github.com/nodejs/node/blob/v6.0.0/lib/_http_client.js#L541).

@coveralls
Copy link

coveralls commented Dec 8, 2016

Coverage Status

Coverage increased (+0.0007%) to 96.538% when pulling 50859e5 on RubenVerborgh:fix-socket-this into 9ee2984 on node-nock:master.

@leosoto
Copy link

leosoto commented Feb 9, 2017

Hi! Any plans to integrate this in a future release? This bugs make nock unusable in conjunction with node-rest-client (which uses follow-redirects, which crashes as described in follow-redirects/follow-redirects#48)

@leosoto
Copy link

leosoto commented Feb 9, 2017

BTW, this is also reported as #779 (ping @ianwsperber)

@ianwsperber ianwsperber added this to the 9.0.5 milestone Feb 9, 2017
@ianwsperber
Copy link
Contributor

@leosoto Will release this week 😄

@ianwsperber ianwsperber merged commit 58b04e3 into nock:master Feb 9, 2017
@ianwsperber
Copy link
Contributor

Thank you for the PR @RubenVerborgh!! This will go out in v9.0.5

@lock
Copy link

lock bot commented Sep 13, 2018

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!

@lock lock bot locked as resolved and limited conversation to collaborators Sep 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants