diff options
| author | 2021-07-25 15:48:08 +0100 | |
|---|---|---|
| committer | 2021-07-25 15:48:08 +0100 | |
| commit | 15bc958c7e91a4d36f1f01ceb54dca48533d0ef8 (patch) | |
| tree | d81b689ffcda97474e9298c49e3d008dd6f62e6d | |
| parent | Lint fix (diff) | |
Change kwarg from body to json
Co-authored-by: Joe Banks <[email protected]>
| -rw-r--r-- | arthur/apis/cloudflare/zones.py | 2 |
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"]} |