fix: bad payload refactor
This commit is contained in:
1 parent
7f74426a22
commit
b5b2b70f4a
1 file changed
+4
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user