aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/console.py
diff options
context:
space:
mode:
authorHenrik Nordstrom <henrik@henriknordstrom.ne>2010-11-12 16:01:17 +0100
committerHenrik Nordstrom <henrik@henriknordstrom.net>2011-02-10 02:59:51 +0100
commit4bae297fbbe294a962116f574ca1b8ae434e0886 (patch)
tree2b16d65ce443d0f2c7ab3ace893aeaf135e52c12 /libmproxy/console.py
parent0613321aefa4cdc63e801fc0392ed5ae84e97502 (diff)
downloadmitmproxy-4bae297fbbe294a962116f574ca1b8ae434e0886.tar.gz
mitmproxy-4bae297fbbe294a962116f574ca1b8ae434e0886.tar.bz2
mitmproxy-4bae297fbbe294a962116f574ca1b8ae434e0886.zip
Basic HTTP/1.1 Support
Adds support for chunked transfer encoding, and a couple other minor protocol corrections. Improve HTTP support - Support intercepted requests with Host header - Support HEAD requests proper - Support any HTTP method including extensions, not just a couple known ones Support expect: 100-continue and 100 Continue messages Persistent client connections Generalize ServerConnection a bit in preparation for keep-alive support Correct HTTP status codes on errors forwarding the request
Diffstat (limited to 'libmproxy/console.py')
-rw-r--r--libmproxy/console.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmproxy/console.py b/libmproxy/console.py
index 7e95d260..1f19671a 100644
--- a/libmproxy/console.py
+++ b/libmproxy/console.py
@@ -447,7 +447,7 @@ class ConnectionView(WWrap):
self.master.prompt_edit("Message", conn.msg, self.set_resp_msg)
elif part == "r" and self.state.view_flow_mode == VIEW_FLOW_REQUEST:
if not conn.acked:
- response = proxy.Response(conn, "200", "HTTP/1.1", "OK", utils.Headers(), "")
+ response = proxy.Response(conn, "200", "OK", utils.Headers(), "")
conn.ack(response)
self.view_response()
self.master.refresh_connection(self.flow)