diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-09-18 18:07:38 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-09-18 18:07:38 +0200 |
commit | 2d4a5fb116a175df0d464e9a501124a858731d99 (patch) | |
tree | e4827d50f1833378bf7fd0b4cb370e37fceff2ed /libmproxy/flow.py | |
parent | 66d21fa4ba7bec0be0acc2c33baf8c6217bd2b38 (diff) | |
download | mitmproxy-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.py | 2 |
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 |