aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/flow.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-09-18 18:07:38 +0200
committerMaximilian Hils <git@maximilianhils.com>2015-09-18 18:07:38 +0200
commit2d4a5fb116a175df0d464e9a501124a858731d99 (patch)
treee4827d50f1833378bf7fd0b4cb370e37fceff2ed /libmproxy/flow.py
parent66d21fa4ba7bec0be0acc2c33baf8c6217bd2b38 (diff)
downloadmitmproxy-2d4a5fb116a175df0d464e9a501124a858731d99.tar.gz
mitmproxy-2d4a5fb116a175df0d464e9a501124a858731d99.tar.bz2
mitmproxy-2d4a5fb116a175df0d464e9a501124a858731d99.zip
experimental: don't interfere with headers, fix #93
Diffstat (limited to 'libmproxy/flow.py')
-rw-r--r--libmproxy/flow.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmproxy/flow.py b/libmproxy/flow.py
index 8ee017f6..7d51b6d1 100644
--- a/libmproxy/flow.py
+++ b/libmproxy/flow.py
@@ -922,7 +922,7 @@ class FlowMaster(controller.Master):
if f.request:
f.backup()
f.request.is_replay = True
- if f.request.content:
+ if "Content-Length" in f.request.headers:
f.request.headers["Content-Length"] = str(len(f.request.content))
f.response = None
f.error = None