Mythus commited on
Commit
c6004a2
·
verified ·
1 Parent(s): d619065

Update run.py

Browse files
Files changed (1) hide show
  1. run.py +1 -1
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 Response(
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)