Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Push the EOF signaling null chunk after replaying proxy errors #93

Closed
wants to merge 1 commit into from

Conversation

lpinca
Copy link
Contributor

@lpinca lpinca commented Jan 27, 2020

Allow the 'end' event to be emitted on the http.IncomingMessage
instance.

Fixes: #87

Allow the `'end'` event to be emitted on the `http.IncomingMessage`
instance.

Fixes: TooTallNate#87
@@ -251,6 +251,28 @@ describe('HttpsProxyAgent', function() {

req.on('abort', done);
});
it('should emit an "end" event on the `http.IncomingMessage` if the proxy responds with non-200 status code', function(done) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like like to shorten this title but I can't think of a more concise way to say the same thing.

TooTallNate added a commit that referenced this pull request Feb 5, 2020
@lpinca lpinca deleted the gh-87 branch February 5, 2020 06:20
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Socket not emitting data when proxy fails
1 participant