Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
palkeo authored and Kriechi committed Dec 23, 2023
1 parent e6f194f commit 9423fc0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/wsproto/handshake.py
Expand Up @@ -238,7 +238,8 @@ def _process_connection_request( # noqa: MC0001
)
if upgrade.lower() != WEBSOCKET_UPGRADE:
raise RemoteProtocolError(
f"Missing header, 'Upgrade: {WEBSOCKET_UPGRADE.decode()}'", event_hint=RejectConnection()
f"Missing header, 'Upgrade: {WEBSOCKET_UPGRADE.decode()}'",
event_hint=RejectConnection(),
)
if host is None:
raise RemoteProtocolError(
Expand Down Expand Up @@ -407,7 +408,8 @@ def _establish_client_connection(
)
if upgrade.lower() != WEBSOCKET_UPGRADE:
raise RemoteProtocolError(
f"Missing header, 'Upgrade: {WEBSOCKET_UPGRADE.decode()}'", event_hint=RejectConnection()
f"Missing header, 'Upgrade: {WEBSOCKET_UPGRADE.decode()}'",
event_hint=RejectConnection(),
)
accept_token = generate_accept_token(self._nonce)
if accept != accept_token:
Expand Down

0 comments on commit 9423fc0

Please sign in to comment.