From 23cceabc42f16ce00d155d861614ea72420b19fd Mon Sep 17 00:00:00 2001 From: Ole Mathias Heggem Date: Sat, 1 Apr 2023 10:48:21 +0200 Subject: dhcpns update --- tools/dhcpns/pdns.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/dhcpns/pdns.py') diff --git a/tools/dhcpns/pdns.py b/tools/dhcpns/pdns.py index 296a151..0e3b3ab 100644 --- a/tools/dhcpns/pdns.py +++ b/tools/dhcpns/pdns.py @@ -26,13 +26,13 @@ class PowerDNS: request = requests.post( self.base_url + uri, headers=headers, - data=kwargs + json=kwargs ) elif method == "PUT": request = requests.put( self.base_url + uri, headers=headers, - data=kwargs + json=kwargs ) elif method == "PATCH": request = requests.patch( -- cgit v1.2.3