aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/cmdline.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmproxy/cmdline.py')
-rw-r--r--libmproxy/cmdline.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/libmproxy/cmdline.py b/libmproxy/cmdline.py
index 7d32f191..f4d0e430 100644
--- a/libmproxy/cmdline.py
+++ b/libmproxy/cmdline.py
@@ -17,6 +17,7 @@ def get_common_options(options):
return dict(
anticache = options.anticache,
anticomp = options.anticomp,
+ autodecode = options.autodecode,
client_replay = options.client_replay,
kill = options.kill,
no_server = options.no_server,
@@ -40,6 +41,11 @@ def common_options(parser):
help = "Address to bind proxy to (defaults to all interfaces)"
)
parser.add_option(
+ "-d",
+ action="store_true", dest="autodecode",
+ help="Automatically decode compressed server responses."
+ )
+ parser.add_option(
"--confdir",
action="store", type = "str", dest="confdir", default='~/.mitmproxy',
help = "Configuration directory. (~/.mitmproxy)"