-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
headers: make sure to forward most target response headers (#19)
This commit forwards all headers from the target server response, but removes: - the `set-cookie` header to avoid transfering authentication data via the proxy (it's not its role to authenticate any clients) - the `transfer-encoding` header, because it's a [“hop-by-hop” header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Transfer-Encoding) and not supposed to be forwarded. The proxy reads the response (and should thus consume the `transfer-encoding` header). If one day the proxy supports streaming responses, we will have to manually add this header as per the HTTP spec.
- Loading branch information
Showing
2 changed files
with
48 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters