"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "5b8fd144702afd217873e636853659f80596ecab"
Commit b5b2b70f authored by Jun Siang Cheah's avatar Jun Siang Cheah
Browse files

fix: bad payload refactor

parent 7f74426a
......@@ -443,7 +443,10 @@ async def proxy(path: str, request: Request, user=Depends(get_verified_user)):
try:
session = aiohttp.ClientSession()
r = await session.request(
method=request.method, url=target_url, data=payload, headers=headers
method=request.method,
url=target_url,
data=payload if payload else body,
headers=headers,
)
r.raise_for_status()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment