pngwn HF staff commited on
Commit
029b549
1 Parent(s): 0b5886f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -146,8 +146,9 @@ async def proxy_to_node(
146
  # }
147
 
148
  # new_headers["Transfer-Encoding"] = "chunked"
 
149
 
150
- return Response(r.aiter_raw(), headers=r.headers)
151
 
152
 
153
  @app.api_route(
 
146
  # }
147
 
148
  # new_headers["Transfer-Encoding"] = "chunked"
149
+ body = await r.body()
150
 
151
+ return Response(body, headers=r.headers)
152
 
153
 
154
  @app.api_route(