fix response code detection

This commit is contained in:
yggverse 2024-04-28 17:46:26 +03:00
parent 6a85e9641b
commit 4178bda041

View File

@ -335,7 +335,7 @@ $server->start(
], ],
[ [
(string) date('c'), (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_HOST),
(string) parse_url($url, PHP_URL_PORT), (string) parse_url($url, PHP_URL_PORT),
(string) str_replace('%', '%%', empty($request) ? '/' : $request), (string) str_replace('%', '%%', empty($request) ? '/' : $request),