From 41d7cef4d635a1a7fbfb25dac91d5755af70e306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 25 Nov 2020 17:40:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Client/HttpParse.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/HttpServer/Client/HttpParse.php b/HttpServer/Client/HttpParse.php index 2aa42324..6ad68d7e 100644 --- a/HttpServer/Client/HttpParse.php +++ b/HttpServer/Client/HttpParse.php @@ -67,7 +67,10 @@ class HttpParse */ private static function ifElse($t, $qt) { - if (is_string($qt) || is_numeric($qt)) { + if (is_numeric($qt)) { + return $t . '=' . $qt; + } + if (is_string($qt)) { $string = $t . '=' . urlencode($qt); } else { $string = static::encode($t, $qt);