Merge pull request #1266 from WhatshallIbreaktoday/master

allow null/None JSON data (Used for pdns notifies via api and by LEGO-ACME v 4.9.0)
This commit is contained in:
Matt Scott 2022-12-08 21:57:18 -05:00 committed by GitHub
commit e823f079b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,9 +14,9 @@ def forward_request():
msg_str = "Sending request to powerdns API {0}" msg_str = "Sending request to powerdns API {0}"
if request.method != 'GET' and request.method != 'DELETE': if request.method != 'GET' and request.method != 'DELETE':
msg = msg_str.format(request.get_json(force=True)) msg = msg_str.format(request.get_json(force=True, silent=True))
current_app.logger.debug(msg) current_app.logger.debug(msg)
data = request.get_json(force=True) data = request.get_json(force=True, silent=True)
verify = False verify = False