mirror of https://gitlab.com/bashrc2/epicyon
Send with different header format
parent
45854f81b7
commit
d38d36ecdb
10
daemon.py
10
daemon.py
|
@ -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: ' +
|
||||
|
|
Loading…
Reference in New Issue