mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-24 04:14:57 +08:00
Merge branch 'issue_341' into server_change_api
Conflicts: examples/redirect_requests.py libmproxy/console/common.py
This commit is contained in:
@@ -12,7 +12,7 @@ def request(context, flow):
|
||||
[1, 1], 200, "OK",
|
||||
ODictCaseless([["Content-Type", "text/html"]]),
|
||||
"helloworld")
|
||||
flow.request.reply(resp)
|
||||
flow.reply(resp)
|
||||
if flow.request.pretty_host(hostheader=True).endswith("example.org"):
|
||||
flow.request.host = "mitmproxy.org"
|
||||
flow.request.update_host_header()
|
||||
|
||||
Reference in New Issue
Block a user