mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 15:37:45 +00:00
fix #1162
This commit is contained in:
parent
e2447406cc
commit
01fcaa64c3
@ -483,8 +483,11 @@ class TestConnectionLost(_Http2TestBase, _Http2ServerBase):
|
||||
h2_conn.receive_data(raw)
|
||||
except:
|
||||
break
|
||||
client.wfile.write(h2_conn.data_to_send())
|
||||
client.wfile.flush()
|
||||
try:
|
||||
client.wfile.write(h2_conn.data_to_send())
|
||||
client.wfile.flush()
|
||||
except:
|
||||
break
|
||||
|
||||
if len(self.master.state.flows) == 1:
|
||||
assert self.master.state.flows[0].response is None
|
||||
|
Loading…
Reference in New Issue
Block a user