master
Bob Mottram 2019-07-19 16:53:25 +01:00
parent f229f3bf35
commit ed1c08e0fe
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ class PubServer(BaseHTTPRequestHandler):
print('DEBUG: WEBFINGER lookup '+self.path+' '+str(self.server.baseDir))
wfResult=webfingerLookup(self.path,self.server.baseDir,self.server.port,self.server.debug)
if wfResult:
self._set_headers('application/jrd+json')
self._set_headers('application/ld+json')
self.wfile.write(json.dumps(wfResult).encode('utf-8'))
else:
if self.server.debug:

View File

@ -53,7 +53,7 @@ def webfingerHandle(session,handle: str,httpPrefix: str,cachedWebfingers: {}) ->
return wf
url = '{}://{}/.well-known/webfinger'.format(httpPrefix,domain)
par = {'resource': 'acct:{}'.format(nickname+'@'+wfDomain)}
hdr = {'Accept': 'application/jrd+json'}
hdr = {'Accept': 'application/ld+json'}
try:
result = getJson(session, url, hdr, par)
except: