From 2b834ba7f1fb585deb5a2e27186ba799e61e35ba Mon Sep 17 00:00:00 2001 From: msquare Date: Sun, 23 Jul 2017 12:11:50 +0200 Subject: fix problem where empty string is not recognized as get value --- src/Http/Request.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Http/Request.php b/src/Http/Request.php index 3ff027d5..fcfc2600 100644 --- a/src/Http/Request.php +++ b/src/Http/Request.php @@ -82,9 +82,9 @@ class Request */ public function has($key) { - $value = $this->input($key); + $data = $this->request + $this->query; - return !(empty($value) && strlen($value) == 0); + return isset($data[$key]); } /** -- cgit v1.2.3-54-g00ecf