Skip to content

Commit

Permalink
Fixing typing vs assignement on websocket_handshake.
Browse files Browse the repository at this point in the history
Related to sanic-org#2272
  • Loading branch information
cnicodeme authored Oct 15, 2021
1 parent 3262878 commit bac50fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sanic/server/protocols/websocket_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def close_if_idle(self):
return super().close_if_idle()

async def websocket_handshake(
self, request, subprotocols=Optional[Sequence[str]]
self, request, subprotocols:Optional[Sequence[str]] = None
):
# let the websockets package do the handshake with the client
try:
Expand Down

0 comments on commit bac50fc

Please sign in to comment.