|
@@ -42,15 +42,15 @@ $http_worker->onMessage = static function ($connection) {
|
|
|
Http::header('Content-Type: application/json');
|
|
|
return $connection->send(updateraw());
|
|
|
|
|
|
- //case '/info':
|
|
|
- // Http::header('Content-Type: text/plain');
|
|
|
- // ob_start();
|
|
|
- // phpinfo();
|
|
|
- // $connection->send(ob_get_clean());
|
|
|
-
|
|
|
- //default:
|
|
|
- // Http::header('HTTP', true, 404);
|
|
|
- // $connection->send('Error 404');
|
|
|
+ //case '/info':
|
|
|
+ // Http::header('Content-Type: text/plain');
|
|
|
+ // ob_start();
|
|
|
+ // phpinfo();
|
|
|
+ // return $connection->send(ob_get_clean());
|
|
|
+
|
|
|
+ default:
|
|
|
+ Http::responseCode(404);
|
|
|
+ $connection->send('Error 404');
|
|
|
}
|
|
|
};
|
|
|
|