From 15bc958c7e91a4d36f1f01ceb54dca48533d0ef8 Mon Sep 17 00:00:00 2001 From: Vivaan Verma <54081925+doublevcodes@users.noreply.github.com> Date: Sun, 25 Jul 2021 15:48:08 +0100 Subject: Change kwarg from body to json Co-authored-by: Joe Banks --- arthur/apis/cloudflare/zones.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arthur/apis/cloudflare/zones.py') diff --git a/arthur/apis/cloudflare/zones.py b/arthur/apis/cloudflare/zones.py index ecf17cd..0f51a08 100644 --- a/arthur/apis/cloudflare/zones.py +++ b/arthur/apis/cloudflare/zones.py @@ -35,7 +35,7 @@ async def purge_zone(zone_identifier: str) -> dict: } async with aiohttp.ClientSession() as session: - async with session.post(endpoint, headers=AUTH_HEADER, body=request_body) as response: + async with session.post(endpoint, headers=AUTH_HEADER, json=request_body) as response: info = await response.json() return {"success": info["success"], "errors": info["errors"]} -- cgit v1.2.3