mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-05 04:02:21 +00:00
Special case for instance actor
This commit is contained in:
1 parent
a69ac4c883
commit
e8d59a951b
1 file changed
+5
-1
+5
-1
@@ -49,7 +49,11 @@ def signPostHeaders(dateStr: str, privateKeyPem: str,
|
||||
|
||||
if not dateStr:
|
||||
dateStr = strftime("%a, %d %b %Y %H:%M:%S %Z", gmtime())
|
||||
keyID = localActorUrl(httpPrefix, nickname, domain) + '#main-key'
|
||||
if nickname != domain:
|
||||
keyID = localActorUrl(httpPrefix, nickname, domain) + '#main-key'
|
||||
else:
|
||||
# instance actor
|
||||
keyID = httpPrefix + '://' + domain + '/actor#main-key'
|
||||
if not messageBodyJsonStr:
|
||||
headers = {
|
||||
'(request-target)': f'post {path}',
|
||||
|
||||
Reference in new issue
Block a user