🐛 Add missing content-type header in livedns API call

This commit is contained in:
Jérôme Petazzoni
2022-03-08 16:42:51 +01:00
parent 2e4e6bc787
commit f7c1e87a89

View File

@@ -60,7 +60,10 @@ while domains and clusters:
zone += f"node{node} 300 IN A {ip}\n"
r = requests.put(
f"{apiurl}/{domain}/records",
headers={"x-api-key": apikey},
headers={
"x-api-key": apikey,
"content-type": "text/plain",
},
data=zone)
print(r.text)