mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +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. |
||
---|---|---|
.. | ||
http1 | ||
http2 | ||
__init__.py | ||
test_authentication.py | ||
test_cookies.py | ||
test_headers.py | ||
test_message.py | ||
test_request.py | ||
test_response.py | ||
test_status_codes.py | ||
test_user_agents.py |