From 236cb3ede3e1d6725eaa9d2be4a278410edfe2a0 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 28 Apr 2024 17:55:48 +0300 Subject: [PATCH] update dump format --- src/nex.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nex.php b/src/nex.php index 62c303f..eab60a3 100644 --- a/src/nex.php +++ b/src/nex.php @@ -338,8 +338,8 @@ $server->start( (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), - (string) str_replace('%', '%%', empty($realpath) ? '!' : $realpath), + (string) empty($request) ? '/' : str_replace('%', '%%', $request), + (string) (!$realpath || !is_string($response) ? '!' : '') . str_replace('%', '%%', $realpath), (string) mb_strlen((string) $response) ], NEXT_DUMP