aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/har_dump.py2
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