Update redirect_requests.py

replace http version with "HTTP/1.1"
This commit is contained in:
Stefan Wärting 2016-01-08 16:02:27 +01:00
parent 11215e46ec
commit 27b801ebe2

View File

@ -12,7 +12,7 @@ def request(context, flow):
# Method 1: Answer with a locally generated response
if flow.request.pretty_host.endswith("example.com"):
resp = HTTPResponse(
[1, 1], 200, "OK",
"HTTP/1.1", 200, "OK",
Headers(Content_Type="text/html"),
"helloworld")
flow.reply(resp)