fix: Set Content-Type on backend API calls

This commit is contained in:
Jérôme BECOT
2022-03-30 23:31:16 +02:00
parent be7b657437
commit 17b4269e1b
3 changed files with 11 additions and 10 deletions

View File

@ -188,6 +188,7 @@ def api_login_create_zone():
api_full_uri = api_uri_with_prefix + '/servers/localhost/zones'
headers = {}
headers['X-API-Key'] = pdns_api_key
headers['Content-Type'] = 'application/json'
msg_str = "Sending request to powerdns API {0}"
msg = msg_str.format(request.get_json(force=True))