diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2015-04-15 10:29:57 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2015-04-15 10:29:57 +1200 |
commit | 5ff430312440d9ed95a003a2d3afc018669dfb6f (patch) | |
tree | 19719728c20fcd06ddd74ea56037d942d21bf8ed /libmproxy/protocol | |
parent | f33b483110db7a62b45e77b693176e2fba0dede9 (diff) | |
download | mitmproxy-5ff430312440d9ed95a003a2d3afc018669dfb6f.tar.gz mitmproxy-5ff430312440d9ed95a003a2d3afc018669dfb6f.tar.bz2 mitmproxy-5ff430312440d9ed95a003a2d3afc018669dfb6f.zip |
Adjust for ODict interface change
Diffstat (limited to 'libmproxy/protocol')
-rw-r--r-- | libmproxy/protocol/http.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmproxy/protocol/http.py b/libmproxy/protocol/http.py index eb7749ea..da6b8aa6 100644 --- a/libmproxy/protocol/http.py +++ b/libmproxy/protocol/http.py @@ -469,7 +469,7 @@ class HTTPRequest(HTTPMessage): if self.content or self.content == "": headers["Content-Length"] = [str(len(self.content))] - return str(headers) + return headers.format() def _assemble_head(self, form=None): return "%s\r\n%s\r\n" % ( @@ -823,7 +823,7 @@ class HTTPResponse(HTTPMessage): if self.content or self.content == "": headers["Content-Length"] = [str(len(self.content))] - return str(headers) + return headers.format() def _assemble_head(self, preserve_transfer_encoding=False): return '%s\r\n%s\r\n' % ( |