改名
This commit is contained in:
@@ -103,6 +103,12 @@ class HTTPServerListener extends Abstracts\Server
|
|||||||
public function onRequest(Request $request, Response $response)
|
public function onRequest(Request $request, Response $response)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
$response->status(200);
|
||||||
|
$response->end();
|
||||||
|
|
||||||
|
return;
|
||||||
|
|
||||||
[$request, $_] = [HRequest::create($request), HResponse::create($response)];
|
[$request, $_] = [HRequest::create($request), HResponse::create($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