diff options
| author | 2021-07-19 16:14:25 +0100 | |
|---|---|---|
| committer | 2021-07-19 16:14:25 +0100 | |
| commit | 0cc1e2ef7c7f40b05d4e2e9c3e93f37fd0f8efa2 (patch) | |
| tree | 2223d001b5c49a8e381918f9b2874406e94ad334 | |
| parent | Merge branch 'main' of https://github.com/doublevcodes/king-arthur into main (diff) | |
fix: make a get request to /zones instead of post
| -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 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"] |