Skip to content

Commit

Permalink
Increase join concat performance (#2291)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahopkins committed Oct 29, 2021
1 parent a361b34 commit 36e6a6c
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 36e6a6c

Please sign in to comment.