Fix Content-Type for JSON Export
Manage, Publish and Share Ontologies, Taxonomies, Thesauri, Glossaries
Brought to you by:
tematres
When exporting a vocabulary to json, the server sends the Content-Type "application/xml" but it should be "application/json". This can easily (but maybe not elegantly) be fixed by adding the line
header('Content-type: application/json');
infront of
echo do_json($_GET[jsonTema]);
in line 48 in xml.php. Maybe for some of the other export formats, the content type also needs to be adjusted, I have not looked into this.