From e7895d259383b6c83fb2a72298bf81c7ce3a279f Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 29 Dec 2016 22:33:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Request=E7=B1=BBcontentType?= =?UTF-8?q?=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 bbc635a6..790c2475 100644 --- a/library/think/Request.php +++ b/library/think/Request.php @@ -1355,7 +1355,7 @@ class Request */ public function contentType() { - $contentType = $this->server('HTTP_CONTENT_TYPE'); + $contentType = $this->server('CONTENT_TYPE'); if ($contentType) { list($type) = explode(';', $contentType); return trim($type);