Accept jrd

main
Bob Mottram 2021-09-08 13:19:01 +01:00
parent 26d71b9332
commit 7df4fa173b
2 changed files with 5 additions and 2 deletions

View File

@ -209,7 +209,9 @@ def createSignedHeader(privateKeyPem: str, nickname: str,
dateStr = strftime("%a, %d %b %Y %H:%M:%S %Z", gmtime())
if not withDigest:
contentType = 'application/activity+json, application/ld+json'
contentType = \
'application/activity+json, ' + \
'application/ld+json, application/jrd+json'
headers = {
'(request-target)': f'get {path}',
'host': headerDomain,

View File

@ -170,7 +170,8 @@ def _testHttpSignedGET():
user_agent = "http.rb/4.4.1 (Mastodon/3.4.1; +https://octodon.social/)"
dateStr = 'Wed, 01 Sep 2021 16:11:10 GMT'
accept_encoding = 'gzip'
accept = 'application/activity+json, application/ld+json'
accept = \
'application/activity+json, application/ld+json, application/jrd+json'
signature = \
'keyId="https://octodon.social/actor#main-key",' + \
'algorithm="rsa-sha256",' + \