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

When proxying requests to a hub use piping unless told not to. #275

Merged
merged 1 commit into from
Dec 18, 2015

Conversation

AdamMagaluk
Copy link
Collaborator

This updates the proxyToPeer code in http_server.js to pipe the response body back to the client unless specifically told not to by env.proxyOpts which is only used for cross server device queries.

Also removes the need to keep the res in httpServer.clients I think this was leftover from some earlier code but unnecessary when we have the env.response object in scope.

@mdobson
Copy link
Contributor

mdobson commented Dec 18, 2015

+1

AdamMagaluk added a commit that referenced this pull request Dec 18, 2015
When proxying requests to a hub use piping unless told not to.
@AdamMagaluk AdamMagaluk merged commit 0680e30 into master Dec 18, 2015
@AdamMagaluk AdamMagaluk deleted the use-pipe-to-proxy branch December 18, 2015 17:05
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