From 0cc1e2ef7c7f40b05d4e2e9c3e93f37fd0f8efa2 Mon Sep 17 00:00:00 2001 From: Vivaan Verma Date: Mon, 19 Jul 2021 16:14:25 +0100 Subject: fix: make a get request to /zones instead of post --- 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 9098d99..367dc3b 100644 --- a/arthur/apis/cloudflare/zones.py +++ b/arthur/apis/cloudflare/zones.py @@ -17,7 +17,7 @@ async def list_zones(zone_name: Optional[str] = None) -> dict[str, str]: endpoint += f"?name={zone_name}" async with aiohttp.ClientSession() as session: - async with session.post(endpoint, headers=request_headers) as response: + async with session.get(endpoint, headers=request_headers) as response: info = await response.json() zones = info["result"] -- cgit v1.2.3