Skip to content
Snippets Groups Projects
Commit 46309ca9 authored by Alvaro Graves's avatar Alvaro Graves
Browse files

adding application/x-turtle and other mime types

parent 322aab7e
No related branches found
No related tags found
No related merge requests found
...@@ -68,6 +68,9 @@ return NULL; ...@@ -68,6 +68,9 @@ return NULL;
foreach($conf['http_accept'] as $extension => $f){ foreach($conf['http_accept'] as $extension => $f){
$page = $uri.".".$extension; $page = $uri.".".$extension;
foreach($f as $v){ foreach($f as $v){
if($contentType == $v){
$returnPage = $uri.".".$extension;
}
$inserts .= "<$page> foaf:primaryTopic <$uri>; $inserts .= "<$page> foaf:primaryTopic <$uri>;
dcterms:format '".$v."'."; dcterms:format '".$v."'.";
if($v == $contentType){ if($v == $contentType){
...@@ -88,7 +91,7 @@ QUERY; ...@@ -88,7 +91,7 @@ QUERY;
if($r == null){ if($r == null){
return null; return null;
} }
return $page; return $returnPage;
} }
} }
?> ?>
...@@ -34,9 +34,9 @@ $conf['view']['standard']['baseUrl'] = $conf['basedir']; ...@@ -34,9 +34,9 @@ $conf['view']['standard']['baseUrl'] = $conf['basedir'];
$conf['resource']['url_delimiter'] = "%u"; $conf['resource']['url_delimiter'] = "%u";
$conf['http_accept']['html'] = array('text/html', 'application/xhtml+xml'); $conf['http_accept']['html'] = array('text/html');
$conf['http_accept']['rdf'] = array('application/rdf+xml'); $conf['http_accept']['rdf'] = array('application/rdf+xml');
$conf['http_accept']['ttl'] = array('text/n3', 'application/turtle', 'application/turtle', 'text/turtle'); $conf['http_accept']['ttl'] = array('text/n3', 'application/x-turtle', 'application/turtle', 'text/turtle');
$conf['http_accept']['nt'] = array('text/plain'); $conf['http_accept']['nt'] = array('text/plain');
?> ?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment