json extension not strictly enforced

main
Bob Mottram 2021-09-12 17:24:29 +01:00
parent 1c510beae7
commit d3e7cc89f7
1 changed files with 1 additions and 1 deletions

View File

@ -6489,7 +6489,7 @@ class PubServer(BaseHTTPRequestHandler):
ontologyFileType = 'application/rdf+xml' ontologyFileType = 'application/rdf+xml'
if ontologyStr.startswith('DFC_'): if ontologyStr.startswith('DFC_'):
ontologyFilename = baseDir + '/ontology/DFC/' + ontologyStr ontologyFilename = baseDir + '/ontology/DFC/' + ontologyStr
elif ontologyStr.endswith('.json'): else:
ontologyStr = ontologyStr.replace('/data/', '') ontologyStr = ontologyStr.replace('/data/', '')
ontologyFilename = baseDir + '/ontology/' + ontologyStr ontologyFilename = baseDir + '/ontology/' + ontologyStr
else: else: