Изменения мидлваре
This commit is contained in:
parent
2f01b77626
commit
4ef3f6e2f8
1 changed files with 1 additions and 1 deletions
|
@ -50,8 +50,8 @@ class AddHeaderMiddleware(BaseHTTPMiddleware):
|
|||
logging.critical(f"Запрос {request.headers}")
|
||||
logging.critical("Sec-Websocket-Protocol".lower() in request.headers)
|
||||
response = await call_next(request)
|
||||
logging.critical(f"Ответ \n {response.headers.get("Sec-Websocket-Protocol", "НИХУЯ")}")
|
||||
response.headers["Sec-Websocket-Protocol"] = ""
|
||||
logging.critical(f"Ответ \n {response.headers}")
|
||||
return response
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue