Skip to content

Commit

Permalink
Increase join concat performance (sanic-org#2291)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahopkins authored and ChihweiLHBird committed Jun 1, 2022
1 parent d6ade36 commit 373d315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sanic/server/protocols/websocket_protocol.py
Expand Up @@ -138,7 +138,7 @@ async def websocket_handshake(
).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:
Expand Down

0 comments on commit 373d315

Please sign in to comment.