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

Adding functionality to set custom headers, and unset headers in plugins. #31

Merged
merged 3 commits into from
Nov 17, 2016

Conversation

mdobson
Copy link
Contributor

@mdobson mdobson commented Nov 4, 2016

First pass at the header functionality.

@@ -355,6 +360,20 @@ function _subscribeToSourceRequestEvents(plugins, promises, sourceRequest, sourc
logger.error(err);
return reject(err);
}

try {
Copy link
Contributor

Choose a reason for hiding this comment

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

Will this work with streaming? This is in the source request 'end' event, and at this point the stream to target request has already been opened and written to (in the 'data' event)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Doesn't look like it. Giving plugins access to data events throws a wrench in all of this.

@f1erro f1erro merged commit 414ce3d into master Nov 17, 2016
@mdobson mdobson deleted the header-set branch February 17, 2017 02:57
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