fix requests.get

This commit is contained in:
Changzhi Li
2025-04-07 09:34:48 +00:00
parent 075bd524a9
commit 6abcb6b69f

View File

@@ -21,7 +21,7 @@ async def get_slce_api(path: str) -> str:
try: try:
async with AsyncClient(verify=False) as client: async with AsyncClient(verify=False) as client:
response = await client.get(f"{GLOBAL_CONFIG.SAFELINE_ADDRESS}{path}", json=req_body, headers={ response = await client.get(f"{GLOBAL_CONFIG.SAFELINE_ADDRESS}{path}", headers={
"X-SLCE-API-TOKEN": f"{GLOBAL_CONFIG.SAFELINE_API_TOKEN}" "X-SLCE-API-TOKEN": f"{GLOBAL_CONFIG.SAFELINE_API_TOKEN}"
}) })
return check_slce_response(response) return check_slce_response(response)