modify
This commit is contained in:
@@ -106,6 +106,11 @@ class HTTPServerListener extends Abstracts\Server
|
|||||||
public function onRequest(Request $request, Response $response)
|
public function onRequest(Request $request, Response $response)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
if (ApplicationStore::getStore()->getStatus() == 'exit') {
|
||||||
|
$response->status(401);
|
||||||
|
$response->end();
|
||||||
|
return;
|
||||||
|
}
|
||||||
$request = HRequest::create($request, $response);
|
$request = HRequest::create($request, $response);
|
||||||
if ($request->is('favicon.ico')) {
|
if ($request->is('favicon.ico')) {
|
||||||
throw new Exception('Not found.', 404);
|
throw new Exception('Not found.', 404);
|
||||||
|
|||||||
Reference in New Issue
Block a user