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 newly introduced error in handler for forward ECONNREFUSED #1100

Merged
merged 1 commit into from
Dec 2, 2016

Conversation

maartenth
Copy link
Contributor

In my merged PR #1099, I was too fast. I didn't make enough changes in the error handler and for ECONNREFUSED this introduced a new error, since proxyReq was not defined.

To fix it, I wrapped the error handler in a createErrorHandler() function to specify which request should be handled (proxyReq or forwardReq).

@jcrugzz
Copy link
Contributor

jcrugzz commented Dec 2, 2016

@maartenth We are both at fault here as I missed it too ;). Thanks for contributing! Please let me know if the forward proxy is working as expected as im not sure if it was originally written to spec.

@jcrugzz jcrugzz merged commit 927357b into http-party:master Dec 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants