修正Request类contentType方法

This commit is contained in:
thinkphp
2016-12-29 22:33:25 +08:00
parent 465b2326a3
commit e7895d2593

View File

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