mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
Merge branch 'master' into issue-4178-passphrase
This commit is contained in:
commit
99dc31a73d
@ -12,6 +12,7 @@ Unreleased: mitmproxy next
|
||||
* Revamp onboarding app (@mhils)
|
||||
* Add ASGI support for embedded apps (@mhils)
|
||||
* Updated raw exports to not remove headers (@wchasekelley)
|
||||
* Fix file unlinking before external viewer finishes loading (@wchasekelley)
|
||||
* Add --cert-passphrase command line argument (@mirosyn)
|
||||
|
||||
* --- TODO: add new PRs above this line ---
|
||||
|
@ -11,6 +11,7 @@ import sys
|
||||
import tempfile
|
||||
import typing # noqa
|
||||
import contextlib
|
||||
import threading
|
||||
|
||||
import urwid
|
||||
|
||||
@ -171,7 +172,9 @@ class ConsoleMaster(master.Master):
|
||||
signals.status_message.send(
|
||||
message="Can't start external viewer: %s" % " ".join(c)
|
||||
)
|
||||
os.unlink(name)
|
||||
# add a small delay before deletion so that the file is not removed before being loaded by the viewer
|
||||
t = threading.Timer(1.0, os.unlink, args=[name])
|
||||
t.start()
|
||||
|
||||
def set_palette(self, opts, updated):
|
||||
self.ui.register_palette(
|
||||
|
Loading…
Reference in New Issue
Block a user