Compare commits

..

No commits in common. "4af21972a90c0642f49e8aaea106a8975f73a568" and "c966bef31a329c1a0b0083424a71e0e8b171ac34" have entirely different histories.

2 changed files with 0 additions and 6 deletions

View File

@ -1,11 +1,6 @@
from fastapi import FastAPI from fastapi import FastAPI
from uvicorn.middleware.proxy_headers import ProxyHeadersMiddleware
app = FastAPI() app = FastAPI()
app.add_middleware(
ProxyHeadersMiddleware, trusted_hosts=[None]
)
@app.get("/f1") @app.get("/f1")
async def f1(): async def f1():
return { return {

View File

@ -1,3 +1,2 @@
fastapi fastapi
uvicorn uvicorn
gunicorn