mirror of
https://github.com/open-webui/open-webui
synced 2025-01-18 00:30:51 +00:00
fix: bad payload refactor
This commit is contained in:
parent
7f74426a22
commit
b5b2b70f4a
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user