mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
修正Request类contentType方法
This commit is contained in:
@@ -1355,7 +1355,7 @@ class Request
|
|||||||
*/
|
*/
|
||||||
public function contentType()
|
public function contentType()
|
||||||
{
|
{
|
||||||
$contentType = $this->server('HTTP_CONTENT_TYPE');
|
$contentType = $this->server('CONTENT_TYPE');
|
||||||
if ($contentType) {
|
if ($contentType) {
|
||||||
list($type) = explode(';', $contentType);
|
list($type) = explode(';', $contentType);
|
||||||
return trim($type);
|
return trim($type);
|
||||||
|
|||||||
Reference in New Issue
Block a user