File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -238,7 +238,8 @@ def _process_connection_request( # noqa: MC0001
238
238
)
239
239
if upgrade .lower () != WEBSOCKET_UPGRADE :
240
240
raise RemoteProtocolError (
241
- f"Missing header, 'Upgrade: { WEBSOCKET_UPGRADE .decode ()} '" , event_hint = RejectConnection ()
241
+ f"Missing header, 'Upgrade: { WEBSOCKET_UPGRADE .decode ()} '" ,
242
+ event_hint = RejectConnection (),
242
243
)
243
244
if host is None :
244
245
raise RemoteProtocolError (
@@ -407,7 +408,8 @@ def _establish_client_connection(
407
408
)
408
409
if upgrade .lower () != WEBSOCKET_UPGRADE :
409
410
raise RemoteProtocolError (
410
- f"Missing header, 'Upgrade: { WEBSOCKET_UPGRADE .decode ()} '" , event_hint = RejectConnection ()
411
+ f"Missing header, 'Upgrade: { WEBSOCKET_UPGRADE .decode ()} '" ,
412
+ event_hint = RejectConnection (),
411
413
)
412
414
accept_token = generate_accept_token (self ._nonce )
413
415
if accept != accept_token :
You can’t perform that action at this time.
0 commit comments