actually use signed headers

This commit is contained in:
Izalia Mae 2024-03-11 02:36:34 -04:00
parent b3ab6e6d40
commit 5b1f244703

View file

@ -116,7 +116,7 @@ class HttpClient:
headers = {} headers = {}
if sign_headers: if sign_headers:
self.signer.sign_headers('GET', url, algorithm = 'original') headers = self.signer.sign_headers('GET', url, algorithm = 'original')
try: try:
logging.debug('Fetching resource: %s', url) logging.debug('Fetching resource: %s', url)
@ -130,7 +130,7 @@ class HttpClient:
if resp.status != 200: if resp.status != 200:
logging.verbose('Received error when requesting %s: %i', url, resp.status) logging.verbose('Received error when requesting %s: %i', url, resp.status)
logging.debug(await resp.read()) logging.debug(data)
return None return None
message = loads(data) message = loads(data)