mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
Better handling of cert errors on connection.
This commit is contained in:
parent
edb10e33aa
commit
2c4e5e0a73
@ -263,7 +263,7 @@ class ProxyHandler(tcp.BaseHandler):
|
||||
# disconnect.
|
||||
if http.response_connection_close(response.httpversion, response.headers):
|
||||
return
|
||||
except (IOError, ProxyError, http.HttpError, tcp.NetLibDisconnect), e:
|
||||
except (IOError, ProxyError, http.HttpError, tcp.NetLibError), e:
|
||||
if hasattr(e, "code"):
|
||||
cc.error = "%s: %s"%(e.code, e.msg)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user