aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Vivaan Verma <[email protected]>2021-07-25 15:48:08 +0100
committerGravatar GitHub <[email protected]>2021-07-25 15:48:08 +0100
commit15bc958c7e91a4d36f1f01ceb54dca48533d0ef8 (patch)
treed81b689ffcda97474e9298c49e3d008dd6f62e6d
parentLint fix (diff)
Change kwarg from body to json
Co-authored-by: Joe Banks <[email protected]>
-rw-r--r--arthur/apis/cloudflare/zones.py2
1 files changed, 1 insertions, 1 deletions
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"]}