aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/flow.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2011-08-02 20:34:01 +1200
committerAldo Cortesi <aldo@nullcube.com>2011-08-02 20:42:46 +1200
commit8cc0469ee72592d079750a9d5427853d95a7dbfe (patch)
treeabbca7456a5321f26a0f5f45b820443a6bb292b0 /libmproxy/flow.py
parentbb6ec29b186fdd482bae98e3fc33b71be5bf103e (diff)
downloadmitmproxy-8cc0469ee72592d079750a9d5427853d95a7dbfe.tar.gz
mitmproxy-8cc0469ee72592d079750a9d5427853d95a7dbfe.tar.bz2
mitmproxy-8cc0469ee72592d079750a9d5427853d95a7dbfe.zip
Tweak encoding behaviour
- Don't fail to identity encoding when an unknown encoding is specified. - Don't constrain encodings. I want to try to modify traffic as little as possible by default. - When decoding, delete content-encoding header rather than set it to "identity" - Refuse to decode/encode when there is an existing but unknown content-encoding header.
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 090c539a..57bcc878 100644
--- a/libmproxy/flow.py
+++ b/libmproxy/flow.py
@@ -588,8 +588,6 @@ class FlowMaster(controller.Master):
f.request.anticache()
if self.anticomp:
f.request.anticomp()
- else:
- f.request.constrain_encoding()
if self.server_playback:
pb = self.do_server_playback(f)