removed debug info

This commit is contained in:
tracer 2022-01-29 16:20:55 +01:00
parent 1fb840206c
commit 073d9cae9e
1 changed files with 3 additions and 2 deletions

View File

@ -63,8 +63,9 @@ class CheckController
case 401: case 401:
$result = 'Missing or wrong API Key'; $result = 'Missing or wrong API Key';
break; break;
case 404:
$result = '404 Not Found';
default: default:
echo __FILE__, __LINE__, $resultJSON;
$result = 'Unhandled error: ' . $httpResponse; $result = 'Unhandled error: ' . $httpResponse;
} }
} else { } else {
@ -73,7 +74,7 @@ class CheckController
} }
curl_close(handle: $curl); curl_close(handle: $curl);
return [ return [
'error' => true, 'error' => $error,
'data' => $result, 'data' => $result,
'header' => $httpResponse ?? '' 'header' => $httpResponse ?? ''
]; ];