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