Test trust all hosts on uvicorn middleware
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
18da7f0712
commit
61f9eba7ef
@ -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 .
|
||||||
|
|
||||||
|
@ -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]:
|
||||||
|
Loading…
Reference in New Issue
Block a user