Test trust all hosts on uvicorn middleware
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Michel Roux 2022-09-08 17:04:00 +00:00
parent 18da7f0712
commit 61f9eba7ef
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ steps:
commands: commands:
- pip install poetry - pip install poetry
- poetry install - poetry install
- poetry run flake8 - poetry run flake8 .
- poetry run mypy . - poetry run mypy .
- poetry run djlint . - poetry run djlint .

View File

@ -35,7 +35,7 @@ class Discord(Client):
client = Discord() client = Discord()
app = Quart(__name__) 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]: def get_guild_by_id(guild_id: str) -> Optional[Guild]: