From 5b1f24470362d0f690f1825818096946a63b7533 Mon Sep 17 00:00:00 2001 From: Izalia Mae Date: Mon, 11 Mar 2024 02:36:34 -0400 Subject: [PATCH] actually use signed headers --- relay/http_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/relay/http_client.py b/relay/http_client.py index 7e7bbd9..eb84362 100644 --- a/relay/http_client.py +++ b/relay/http_client.py @@ -116,7 +116,7 @@ class HttpClient: headers = {} if sign_headers: - self.signer.sign_headers('GET', url, algorithm = 'original') + headers = self.signer.sign_headers('GET', url, algorithm = 'original') try: logging.debug('Fetching resource: %s', url) @@ -130,7 +130,7 @@ class HttpClient: if resp.status != 200: logging.verbose('Received error when requesting %s: %i', url, resp.status) - logging.debug(await resp.read()) + logging.debug(data) return None message = loads(data)