You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.
I have an action that proxies the current request by modifying the Uri in the original request and then sending it through Zend\Http\Client. However, the new Host header based on the Uri gets overwritten by the original Host header in the original request.
I have an action that proxies the current request by modifying the Uri in the original request and then sending it through Zend\Http\Client. However, the new Host header based on the Uri gets overwritten by the original Host header in the original request.
Eg:
The request ends up being sent to http://example.com/proxy-target instead of http://target-site.com/proxy-target
This is because of the lines here:
https://github.com/zendframework/zf2/blob/master/library/Zend/Http/Client.php#L1156
Shouldn't the new headers take precedence over the headers from the request?
The text was updated successfully, but these errors were encountered: