Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mitmproxy2swagger/mitmproxy2swagger.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ def f7(seq):
"Remove the ignore: prefix to generate an endpoint with its URL\nLines that are closer to the top take precedence, the matching is greedy"
)
# save the swagger file
with open(args.output, "w") as f:
with open(args.output, "w", encoding="utf-8") as f:
yaml.dump(swagger, f)
print("Done!")

Expand Down