From 61f9eba7ef9446ebfe58af7cdbe71f0fc94c941b Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Thu, 8 Sep 2022 17:04:00 +0000 Subject: [PATCH] Test trust all hosts on uvicorn middleware --- .drone.yml | 2 +- divent/bot.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 9a00500..7ef5212 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,7 +8,7 @@ steps: commands: - pip install poetry - poetry install - - poetry run flake8 + - poetry run flake8 . - poetry run mypy . - poetry run djlint . diff --git a/divent/bot.py b/divent/bot.py index ca19bcd..9695abd 100644 --- a/divent/bot.py +++ b/divent/bot.py @@ -35,7 +35,7 @@ class Discord(Client): client = Discord() app = Quart(__name__) -app.asgi_app = ProxyHeadersMiddleware(app.asgi_app) # type: ignore +app.asgi_app = ProxyHeadersMiddleware(app.asgi_app, trusted_hosts="*") # type: ignore def get_guild_by_id(guild_id: str) -> Optional[Guild]: