diff options
author | Henrik Nordstrom <henrik@henriknordstrom.ne> | 2010-11-12 16:01:17 +0100 |
---|---|---|
committer | Henrik Nordstrom <henrik@henriknordstrom.net> | 2011-02-10 02:59:51 +0100 |
commit | 4bae297fbbe294a962116f574ca1b8ae434e0886 (patch) | |
tree | 2b16d65ce443d0f2c7ab3ace893aeaf135e52c12 /libmproxy/console.py | |
parent | 0613321aefa4cdc63e801fc0392ed5ae84e97502 (diff) | |
download | mitmproxy-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.py | 2 |
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) |