Add user agent

merge-requests/8/head
Bob Mottram 2021-01-21 16:48:44 +00:00
parent 0835e38a21
commit daccb6f10e
1 changed files with 3 additions and 1 deletions

View File

@ -9085,9 +9085,11 @@ class PubServer(BaseHTTPRequestHandler):
callingDomain, port,
boxPath,
httpPrefix, False, None)
self.headers.clear()
for headerName, headerItem in signatureHeaderJson.items():
self.headers[headerName] = headerItem
self.headers['User-Agent'] = \
'Epicyon/' + __version__ + \
'; +' + httpPrefix + '://' + domainFull + '/'
if atPath:
print('@ detected outgoing actor: ' + str(actorJson))
print('@ detected outgoing headers: ' +