aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/dump.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2011-02-23 10:54:51 +1300
committerAldo Cortesi <aldo@nullcube.com>2011-02-23 10:54:51 +1300
commit39207ffdd280af854d521f810f6082d42943eefa (patch)
tree1a4407c39504aaf9b11bdfd7d5afb8e61c22a705 /libmproxy/dump.py
parentc80214ba553e28f1ec245be3713cd4a8330dbdb0 (diff)
downloadmitmproxy-39207ffdd280af854d521f810f6082d42943eefa.tar.gz
mitmproxy-39207ffdd280af854d521f810f6082d42943eefa.tar.bz2
mitmproxy-39207ffdd280af854d521f810f6082d42943eefa.zip
Add a way for users to specify header significance in server replay.
Also add the --rheader command-line option to mitmdump to let the user specify an arbitrary number of significant headers. The default is to treat no headers as significant.
Diffstat (limited to 'libmproxy/dump.py')
-rw-r--r--libmproxy/dump.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmproxy/dump.py b/libmproxy/dump.py
index 66bb5206..396dc31d 100644
--- a/libmproxy/dump.py
+++ b/libmproxy/dump.py
@@ -12,6 +12,7 @@ class Options(object):
"replay",
"verbosity",
"wfile",
+ "rheaders",
]
def __init__(self, **kwargs):
for k, v in kwargs.items():
@@ -52,7 +53,7 @@ class DumpMaster(flow.FlowMaster):
flows = list(flow.FlowReader(f).stream())
except IOError, v:
raise DumpError(v.strerror)
- self.start_playback(flows, options.kill)
+ self.start_playback(flows, options.kill, options.rheaders)
def _runscript(self, f, script):
try: