Update http.py
Browse files
http.py
CHANGED
@@ -24,4 +24,8 @@ async def proxy(request: Request, path: str):
|
|
24 |
content=resp.content,
|
25 |
status_code=resp.status_code,
|
26 |
headers=dict(resp.headers)
|
27 |
-
)
|
|
|
|
|
|
|
|
|
|
24 |
content=resp.content,
|
25 |
status_code=resp.status_code,
|
26 |
headers=dict(resp.headers)
|
27 |
+
)
|
28 |
+
|
29 |
+
if __name__ == "__main__":
|
30 |
+
# 运行FastAPI应用
|
31 |
+
uvicorn.run("http:app", host="0.0.0.0", port=8000, reload=True)
|