mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-02-01 15:55:28 +00:00
adjust to netlib request model changes
This commit is contained in:
parent
2f670bac99
commit
a163dba582
@ -410,7 +410,7 @@ class Pathoc(tcp.TCPClient):
|
|||||||
req = language.serve(r, self.wfile, self.settings)
|
req = language.serve(r, self.wfile, self.settings)
|
||||||
self.wfile.flush()
|
self.wfile.flush()
|
||||||
|
|
||||||
resp = self.protocol.read_response(self.rfile, treq(method=req["method"]))
|
resp = self.protocol.read_response(self.rfile, treq(method=req["method"].encode()))
|
||||||
resp.sslinfo = self.sslinfo
|
resp.sslinfo = self.sslinfo
|
||||||
except HttpException as v:
|
except HttpException as v:
|
||||||
lg("Invalid server response: %s" % v)
|
lg("Invalid server response: %s" % v)
|
||||||
|
@ -228,6 +228,7 @@ class CommonTests(tutils.DaemonTests):
|
|||||||
ws_read_limit=1,
|
ws_read_limit=1,
|
||||||
timeout=1
|
timeout=1
|
||||||
)
|
)
|
||||||
|
# FIXME: Race Condition?
|
||||||
assert "Parse error" in self.d.text_log()
|
assert "Parse error" in self.d.text_log()
|
||||||
|
|
||||||
def test_websocket_frame_disconnect_error(self):
|
def test_websocket_frame_disconnect_error(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user