mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-02-01 15:55:28 +00:00
http2: fix EchoHandler test helper
This commit is contained in:
parent
e7c84a1ce1
commit
6c1c6f5f0a
@ -12,9 +12,10 @@ class EchoHandler(tcp.BaseHandler):
|
|||||||
sni = None
|
sni = None
|
||||||
|
|
||||||
def handle(self):
|
def handle(self):
|
||||||
v = self.rfile.readline()
|
while True:
|
||||||
self.wfile.write(v)
|
v = self.rfile.safe_read(1)
|
||||||
self.wfile.flush()
|
self.wfile.write(v)
|
||||||
|
self.wfile.flush()
|
||||||
|
|
||||||
|
|
||||||
class TestCheckALPNMatch(test.ServerTestBase):
|
class TestCheckALPNMatch(test.ServerTestBase):
|
||||||
|
Loading…
Reference in New Issue
Block a user