Use calling domain for dfc ontology

main
Bob Mottram 2021-09-12 16:55:57 +01:00
parent bca995ad54
commit d071081b3a
1 changed files with 2 additions and 2 deletions

View File

@ -6506,9 +6506,9 @@ class PubServer(BaseHTTPRequestHandler):
not callingDomain.endswith('.onion'):
ontologyFile = \
ontologyFile.replace('http://' +
self.server.domainFull,
callingDomain,
'https://' +
self.server.domainFull)
callingDomain)
msg = ontologyFile.encode('utf-8')
msglen = len(msg)
self._set_headers(ontologyFileType, msglen,