Compare commits
No commits in common. "4af21972a90c0642f49e8aaea106a8975f73a568" and "c966bef31a329c1a0b0083424a71e0e8b171ac34" have entirely different histories.
4af21972a9
...
c966bef31a
5
main.py
5
main.py
|
@ -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 {
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
fastapi
|
fastapi
|
||||||
uvicorn
|
uvicorn
|
||||||
gunicorn
|
|
||||||
|
|
Loading…
Reference in New Issue