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')
|
'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: ' +
|
||||||
|
|
Loading…
Reference in New Issue