From f62ff5e748c934a5617fe8333a8c8d0d646d919c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 12 Sep 2021 11:59:07 +0100 Subject: [PATCH] Send ontology file --- daemon.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/daemon.py b/daemon.py index 96637515b..6b7e940b9 100644 --- a/daemon.py +++ b/daemon.py @@ -6493,9 +6493,13 @@ class PubServer(BaseHTTPRequestHandler): with open(ontologyFilename, 'r') as fp: ontologyFile = fp.read() if ontologyFile: + ontologyFile = \ + ontologyFile.replace('static.datafoodconsortium.org', + self.server.domainFull) msg = ontologyFile.encode('utf-8') self._set_headers('application/rdf+xml', len(msg), None, callingDomain, False) + self._write(msg) self._benchmarkGETtimings(GETstartTime, GETtimings, 'show emoji done', 'get onotology')