Increase join concat performance (#2291)

This commit is contained in:
Adam Hopkins
2021-10-29 12:55:09 +03:00
committed by GitHub
parent a361b345ad
commit 36e6a6c506

View File

@@ -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: