API: Now returns a real 404 when a function isn't implemented

parse_url: Image handling improved
This commit is contained in:
Michael Vogel 2012-07-13 23:23:31 +02:00
commit 5f400c4a97
3 changed files with 5 additions and 30 deletions

View file

@ -156,6 +156,7 @@
//echo "<pre>"; var_dump($r); die();
}
}
header("HTTP/1.1 404 Not Found");
logger('API call not implemented: '.$a->query_string." - ".print_r($_REQUEST,true));
$r = '<status><error>not implemented</error></status>';
switch($type){