From ed1c08e0fec755af957ba74d4e466522273c0119 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 19 Jul 2019 16:53:25 +0100 Subject: [PATCH] ld+json --- daemon.py | 2 +- webfinger.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon.py b/daemon.py index 89aa49ad..5e500fec 100644 --- a/daemon.py +++ b/daemon.py @@ -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: diff --git a/webfinger.py b/webfinger.py index 5b112040..a2e33cf8 100644 --- a/webfinger.py +++ b/webfinger.py @@ -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: