Send with different header format

merge-requests/30/head
Bob Mottram 2021-01-21 18:06:49 +00:00
parent 45854f81b7
commit d38d36ecdb
1 changed files with 3 additions and 7 deletions

View File

@ -9094,15 +9094,11 @@ class PubServer(BaseHTTPRequestHandler):
'show profile posts')
else:
if self._fetchAuthenticated():
msgStr = json.dumps(actorJson,
ensure_ascii=False)
msgStr = json.dumps(actorJson, ensure_ascii=False)
msg = msgStr.encode('utf-8')
msglen = len(msg)
self._set_headers_with_sig('application/json', msglen,
baseDir, path,
domain, domainFull, port,
httpPrefix,
callingDomain, debug, msgStr)
self._set_headers('application/ld+json', msglen,
cookie, callingDomain)
if atPath:
print('@ detected outgoing actor: ' + str(actorJson))
print('@ detected outgoing headers: ' +