mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
a69d223b33
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. |
||
---|---|---|
.. | ||
data | ||
http | ||
tools | ||
websockets | ||
__init__.py | ||
test_certutils.py | ||
test_encoding.py | ||
test_imports.py | ||
test_odict.py | ||
test_socks.py | ||
test_tcp.py | ||
test_utils.py | ||
test_version_check.py | ||
test_wsgi.py |