Update run.py
Browse files
run.py
CHANGED
|
@@ -21,7 +21,7 @@ app = FastAPI(lifespan=close_proxy_event)
|
|
| 21 |
@app.get("/{path:path}")
|
| 22 |
async def _(request: Request, path: str = ""):
|
| 23 |
response = await proxy.proxy(request=request, path=path)
|
| 24 |
-
return
|
| 25 |
content=response.content,
|
| 26 |
status_code=response.status_code,
|
| 27 |
headers=dict(response.headers)
|
|
|
|
| 21 |
@app.get("/{path:path}")
|
| 22 |
async def _(request: Request, path: str = ""):
|
| 23 |
response = await proxy.proxy(request=request, path=path)
|
| 24 |
+
return JSONResponse(
|
| 25 |
content=response.content,
|
| 26 |
status_code=response.status_code,
|
| 27 |
headers=dict(response.headers)
|