aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/protocol/http.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmproxy/protocol/http.py')
-rw-r--r--libmproxy/protocol/http.py4
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' % (