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') 'show profile posts')
else: else:
if self._fetchAuthenticated(): if self._fetchAuthenticated():
msgStr = json.dumps(actorJson, msgStr = json.dumps(actorJson, ensure_ascii=False)
ensure_ascii=False)
msg = msgStr.encode('utf-8') msg = msgStr.encode('utf-8')
msglen = len(msg) msglen = len(msg)
self._set_headers_with_sig('application/json', msglen, self._set_headers('application/ld+json', msglen,
baseDir, path, cookie, callingDomain)
domain, domainFull, port,
httpPrefix,
callingDomain, debug, msgStr)
if atPath: if atPath:
print('@ detected outgoing actor: ' + str(actorJson)) print('@ detected outgoing actor: ' + str(actorJson))
print('@ detected outgoing headers: ' + print('@ detected outgoing headers: ' +