From 4178bda04185aa938a40d34464e0c6819f069bf2 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 28 Apr 2024 17:46:26 +0300 Subject: [PATCH] fix response code detection --- src/nex.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nex.php b/src/nex.php index b194024..62c303f 100644 --- a/src/nex.php +++ b/src/nex.php @@ -335,7 +335,7 @@ $server->start( ], [ (string) date('c'), - (string) (int) !empty($response), + (string) (int) is_string($response), (string) parse_url($url, PHP_URL_HOST), (string) parse_url($url, PHP_URL_PORT), (string) str_replace('%', '%%', empty($request) ? '/' : $request),