Increase join concat performance (#2291)
This commit is contained in:
parent
a361b345ad
commit
36e6a6c506
|
@ -138,7 +138,7 @@ class WebSocketProtocol(HttpProtocol):
|
|||
).encode()
|
||||
rbody = bytearray(first_line)
|
||||
rbody += (
|
||||
"".join(f"{k}: {v}\r\n" for k, v in resp.headers.items())
|
||||
"".join([f"{k}: {v}\r\n" for k, v in resp.headers.items()])
|
||||
).encode()
|
||||
rbody += b"\r\n"
|
||||
if resp.body is not None:
|
||||
|
|
Loading…
Reference in New Issue
Block a user