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

Fire 'end' event on response.redirect #77

Merged
merged 1 commit into from Oct 28, 2015
Merged

Fire 'end' event on response.redirect #77

merged 1 commit into from Oct 28, 2015

Conversation

vgatto
Copy link
Contributor

@vgatto vgatto commented Sep 25, 2015

I'm using the response 'end' event to make sure my middleware tests complete, but in the redirect case, no 'end' event is fired.

@fidanov
Copy link

fidanov commented Oct 27, 2015

I think this pull request will provide a more consistent behaviour. Express is emitting end when redirecting.

You can see it here https://github.com/strongloop/express/blob/master/lib/response.js#L898

Please merge it.

howardabrams added a commit that referenced this pull request Oct 28, 2015
@howardabrams howardabrams merged commit 8a10dd4 into eugef:master Oct 28, 2015
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.

None yet

3 participants