mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
Fix Python3 tests
This commit is contained in:
parent
59aff68e7a
commit
4c292b0197
@ -45,7 +45,7 @@ class HangHandler(tcp.BaseHandler):
|
||||
self.connection.setblocking(0)
|
||||
ret = self.connection.recv(1)
|
||||
# Client connection is dead...
|
||||
if ret == "":
|
||||
if ret == "" or ret == b"":
|
||||
return
|
||||
except socket.error:
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user