From 8f07fb95f9cdf1da1bbc2bf7c09dfa6dbd878f15 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 9 Feb 2024 23:49:04 +0000 Subject: [PATCH] Change headers --- blocking.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/blocking.py b/blocking.py index 82c85c43a..4329aa2a7 100644 --- a/blocking.py +++ b/blocking.py @@ -1888,8 +1888,6 @@ def _update_federated_blocks(session, base_dir: str, return block_federated headers = { - 'host': domain, - 'Content-type': 'application/json', 'Accept': 'application/json' } @@ -1905,11 +1903,12 @@ def _update_federated_blocks(session, base_dir: str, print('federated blocklist Block API endpoint: ' + url) blocked_json = get_json(signing_priv_key_pem, session, url, headers, - None, debug, version, http_prefix, None) + None, debug, version, http_prefix, domain) if not get_json_valid(blocked_json): print('DEBUG: federated blocklist ' + 'GET blocked json failed ' + url) continue + print('DEBUG: federated blocklist: ' + str(blocked_json)) if isinstance(blocked_json, list): # ensure that the size of the list does not become a form of denial # of service