From ce590c2e5345ceaee62f002aa6ec111e60ed4700 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 15 Dec 2016 12:29:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BRequest=E7=B1=BB=E7=9A=84acce?= =?UTF-8?q?pt=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Request.php b/library/think/Request.php index a30180a8..3974d893 100644 --- a/library/think/Request.php +++ b/library/think/Request.php @@ -455,7 +455,7 @@ class Request */ public function type() { - $accept = isset($this->server['HTTP_ACCEPT']) ? $this->server['HTTP_ACCEPT'] : $_SERVER['HTTP_ACCEPT']; + $accept = $this->server('HTTP_ACCEPT'); if (empty($accept)) { return false; }