diff options
author | Aldo Cortesi <aldo@corte.si> | 2012-07-23 18:47:03 -0700 |
---|---|---|
committer | Aldo Cortesi <aldo@corte.si> | 2012-07-23 18:47:03 -0700 |
commit | a5bf9d3eb3da9de9aa9438de3c192a3023c90e6c (patch) | |
tree | b56123cc44175b752e17fe1774826e7ffbbc291b /libmproxy/dump.py | |
parent | 4ce309107a13753fe002d13166ff2bbe532e8148 (diff) | |
parent | c643234c985ff320f15f0e2047f91a5076ea332d (diff) | |
download | mitmproxy-a5bf9d3eb3da9de9aa9438de3c192a3023c90e6c.tar.gz mitmproxy-a5bf9d3eb3da9de9aa9438de3c192a3023c90e6c.tar.bz2 mitmproxy-a5bf9d3eb3da9de9aa9438de3c192a3023c90e6c.zip |
Merge pull request #54 from mhils/fix_r_option
fix -r option, read file in binary mode
Diffstat (limited to 'libmproxy/dump.py')
-rw-r--r-- | libmproxy/dump.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmproxy/dump.py b/libmproxy/dump.py index 1f90184b..9ad6c327 100644 --- a/libmproxy/dump.py +++ b/libmproxy/dump.py @@ -121,7 +121,7 @@ class DumpMaster(flow.FlowMaster): if options.rfile: path = os.path.expanduser(options.rfile) try: - f = file(path, "r") + f = file(path, "rb") freader = flow.FlowReader(f) except IOError, v: raise DumpError(v.strerror) |