mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
修正Request类contentType方法
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user