File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 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
238238 )
239239 if upgrade .lower () != WEBSOCKET_UPGRADE :
240240 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 (),
242243 )
243244 if host is None :
244245 raise RemoteProtocolError (
@@ -407,7 +408,8 @@ def _establish_client_connection(
407408 )
408409 if upgrade .lower () != WEBSOCKET_UPGRADE :
409410 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 (),
411413 )
412414 accept_token = generate_accept_token (self ._nonce )
413415 if accept != accept_token :
You can’t perform that action at this time.
0 commit comments