fix some leftovers

This commit is contained in:
Maximilian Hils
2014-09-04 00:10:01 +02:00
parent b0cfeff06d
commit 649e63ff3c
4 changed files with 7 additions and 9 deletions

View File

@@ -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.get_host(hostheader=True).endswith("example.org"):
flow.request.host = "mitmproxy.org"
flow.request.headers["Host"] = ["mitmproxy.org"]