mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-01 02:15:12 +00:00
Send with different header format
This commit is contained in:
1 parent
45854f81b7
commit
d38d36ecdb
1 file changed
+3
-7
@@ -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: ' +
|
||||
|
||||
Reference in new issue
Block a user