mirror of
https://github.com/chaitin/SafeLine.git
synced 2025-11-25 19:37:42 +08:00
fix requests.get
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user