Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeauchesne committed Apr 16, 2023
1 parent d759336 commit 8e6c9de
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion utils/proxy/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,12 @@ def response(self, flow):

data["log_filename"] = log_filename

with open(log_filename, "w", encoding="utf-8") as f:
# os.umask(0)

def opener(path, flags):
return os.open(path, flags, 0o777)

with open(log_filename, "w", encoding="utf-8", opener=opener) as f:
json.dump(data, f, indent=2, cls=ObjectDumpEncoder)

except:
Expand Down

0 comments on commit 8e6c9de

Please sign in to comment.