From d3e7cc89f7a9a4031efaf833f1bc96c3ebd0444e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 12 Sep 2021 17:24:29 +0100 Subject: [PATCH] json extension not strictly enforced --- daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index bab4bb40c..2d37a8b13 100644 --- a/daemon.py +++ b/daemon.py @@ -6489,7 +6489,7 @@ class PubServer(BaseHTTPRequestHandler): ontologyFileType = 'application/rdf+xml' if ontologyStr.startswith('DFC_'): ontologyFilename = baseDir + '/ontology/DFC/' + ontologyStr - elif ontologyStr.endswith('.json'): + else: ontologyStr = ontologyStr.replace('/data/', '') ontologyFilename = baseDir + '/ontology/' + ontologyStr else: