mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-22 22:48:00 +00:00
actually use signed headers
This commit is contained in:
parent
b3ab6e6d40
commit
5b1f244703
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue