json extension not strictly enforced

This commit is contained in:
bashrc committed 2021-09-12 17:24:29 +01:00
1 parent 1c510beae7
commit d3e7cc89f7
1 file changed
+1 -1
+1 -1
View File
@@ -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: