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

Moving response emit above setHeaders on destination streams #498

Merged
merged 1 commit into from
Mar 29, 2013
Merged

Moving response emit above setHeaders on destination streams #498

merged 1 commit into from
Mar 29, 2013

Conversation

kenperkins
Copy link
Contributor

This change proposes moving self.emit('response', response); above the loop that ultimately calls self.pipeDest() on each of the destination streams.

This is to allow modifying the response headers before they are cloned to the destination Requests.

mikeal added a commit that referenced this pull request Mar 29, 2013
Moving response emit above setHeaders on destination streams
@mikeal mikeal merged commit bff3e0b into request:master Mar 29, 2013
@kenperkins
Copy link
Contributor Author

Should have mentioned: Tests all pass :D

@mikeal
Copy link
Member

mikeal commented Mar 29, 2013

i merged it, did a pull, and then ran the tests so I already knew :)

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

2 participants