aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/flow.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-06-10 17:10:43 +1200
committerAldo Cortesi <aldo@nullcube.com>2012-06-10 17:10:43 +1200
commitd032504b17daf9e057172afa2e36b9206db5cac1 (patch)
tree39f5e9b84fb936ea63548716904fcdd7a8df9999 /libmproxy/flow.py
parentd60fa9918bf9a074c420a4fb3b8fa26b86710d9b (diff)
downloadmitmproxy-d032504b17daf9e057172afa2e36b9206db5cac1.tar.gz
mitmproxy-d032504b17daf9e057172afa2e36b9206db5cac1.tar.bz2
mitmproxy-d032504b17daf9e057172afa2e36b9206db5cac1.zip
Fix an exception when replaying a flow with no response.
Diffstat (limited to 'libmproxy/flow.py')
-rw-r--r--libmproxy/flow.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/libmproxy/flow.py b/libmproxy/flow.py
index 10e2c335..e25460b5 100644
--- a/libmproxy/flow.py
+++ b/libmproxy/flow.py
@@ -746,8 +746,6 @@ class Response(HTTPMsg):
headers["content-length"] = [str(len(content))]
else:
content = ""
- if self.request.client_conn.close:
- headers["connection"] = ["close"]
proto = "HTTP/%s.%s %s %s"%(self.httpversion[0], self.httpversion[1], self.code, str(self.msg))
data = (proto, str(headers), content)
return FMT%data