This repository has been archived by the owner on Apr 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 322
Forward request headers #175
Comments
I think this is similar to what we added for JSP recently: #164 and I think this is how all three proxies should behave. |
The "copyHeaders" function of the DotNet proxy will copy the original response headers to the final response. Doing the same for the request headers seems to make sense. I would be willing to tackle this enhancement for the DotNet version if needed. |
Okay! You are right, #174 is not a good permanent solution. |
jwoyame
added a commit
to jwoyame/resource-proxy
that referenced
this issue
Jan 10, 2015
I think now we are forwarding all the headers from the client request. Right? @bsvensson |
I implemented the upgrade in the unaccepted pull request #186, the issue is still worth review. Headers are copied for responses but not for requests. |
This has been fixed and merged - see #433. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
To behave more like a "true" HTTP proxy, the scripts could forward all request headers from the browser which are not explicitly set by the script itself.
This would enable features such as:
It would also help to prevent unforeseen issues and bugs, such as the (fixed) issue where PDF files could not be proxied due to the "Range" header getting dropped by the proxy.
The text was updated successfully, but these errors were encountered: