mirror of https://gitlab.com/bashrc2/epicyon
Accept jrd
parent
26d71b9332
commit
7df4fa173b
|
@ -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,
|
||||
|
|
3
tests.py
3
tests.py
|
@ -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",' + \
|
||||
|
|
Loading…
Reference in New Issue