mitmproxy/netlib/netlib/http
Will Coster a69d223b33 Preserve host header when modifying request path
Currently the path_components and query setters of the Request object
use the url setter under the hood. The url setter updates all parts of
the URL including the host. If the host header and the host in the
request URL are different (as is common when making HTTPS requests)
then the host header will be updated to the value in the URL as a
result of modifying the path.

This change fixes this problem by modifying the query and
path_components setters to not use the url setter and instead directly
update the path field.
2016-02-15 16:21:20 -08:00
..
http1 add netlib 2016-02-15 14:58:48 +01:00
http2 add netlib 2016-02-15 14:58:48 +01:00
__init__.py add netlib 2016-02-15 14:58:48 +01:00
authentication.py add netlib 2016-02-15 14:58:48 +01:00
cookies.py add netlib 2016-02-15 14:58:48 +01:00
headers.py add netlib 2016-02-15 14:58:48 +01:00
message.py add netlib 2016-02-15 14:58:48 +01:00
request.py Preserve host header when modifying request path 2016-02-15 16:21:20 -08:00
response.py add netlib 2016-02-15 14:58:48 +01:00
status_codes.py add netlib 2016-02-15 14:58:48 +01:00
user_agents.py add netlib 2016-02-15 14:58:48 +01:00