diff options
author | Shadab Zafar <dufferzafar0@gmail.com> | 2016-08-08 14:33:21 +0530 |
---|---|---|
committer | Shadab Zafar <dufferzafar0@gmail.com> | 2016-08-15 12:00:23 +0530 |
commit | 456f80d862b1eb1a268f9780eac77c11c227ce81 (patch) | |
tree | e3f69528eec02b5e12a51957aabbdbeb2082dd9b /examples | |
parent | 2c9240fd223ffaad6b6d754eda9fa1cd385e0ad1 (diff) | |
download | mitmproxy-456f80d862b1eb1a268f9780eac77c11c227ce81.tar.gz mitmproxy-456f80d862b1eb1a268f9780eac77c11c227ce81.tar.bz2 mitmproxy-456f80d862b1eb1a268f9780eac77c11c227ce81.zip |
Open JSON file in text mode
Diffstat (limited to 'examples')
-rw-r--r-- | examples/har_dump.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/har_dump.py b/examples/har_dump.py index 819c38d8..5acd8bfa 100644 --- a/examples/har_dump.py +++ b/examples/har_dump.py @@ -120,7 +120,7 @@ def done(): mitmproxy.ctx.log(pprint.pformat(HAR)) # TODO: .zhar compression else: - with open(dump_file, "wb") as f: + with open(dump_file, "w") as f: f.write(json.dumps(HAR, indent=2)) # TODO: Log results via mitmproxy.ctx.log |