Fixed log for SATS (or if no TreeToken received)

This commit is contained in:
xdrm-brackets 2017-10-27 18:17:07 +02:00
parent 00f1efb38d
commit 38b790c82d
1 changed files with 2 additions and 0 deletions

View File

@ -156,6 +156,8 @@
$R->post('api(?:(/.*))/?', function($url){
if( isset($_SERVER['HTTP_X_TREE_TOKEN']) )
$GLOBALS['page_log']->log('api.call('.$_SERVER['HTTP_X_TREE_TOKEN'].')');
else
$GLOBALS['page_log']->log('api.call(NO_TOKEN)');
header('Content-Type: application/json; charset=UTF-8');