diff --git a/library/think/Request.php b/library/think/Request.php index f32637d5..5a95f756 100644 --- a/library/think/Request.php +++ b/library/think/Request.php @@ -1357,7 +1357,11 @@ class Request { $contentType = $this->server('CONTENT_TYPE'); if ($contentType) { - list($type) = explode(';', $contentType); + if (strpos($contentType, ';')) { + list($type) = explode(';', $contentType); + } else { + $type = $contentType; + } return trim($type); } return '';