Изменения вебсокета
This commit is contained in:
parent
fa669cec49
commit
9e39125a99
1 changed files with 1 additions and 4 deletions
|
@ -51,12 +51,9 @@ async def check_verificated_user_with_exc(user: SUser = Depends(get_current_user
|
|||
return user
|
||||
|
||||
|
||||
def get_token_ws(sec_websocket_protocol: Annotated[str | None, Header()] = None,) -> str:
|
||||
def get_token_ws(sec_websocket_protocol: Annotated[str | None, Header()] = None) -> str:
|
||||
if sec_websocket_protocol is None:
|
||||
raise TokenAbsentException
|
||||
logging.critical(sec_websocket_protocol)
|
||||
logging.critical(sec_websocket_protocol.split())
|
||||
|
||||
return sec_websocket_protocol
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue