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);