mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
改进Request类的accept方法
This commit is contained in:
@@ -455,7 +455,7 @@ class Request
|
||||
*/
|
||||
public function type()
|
||||
{
|
||||
$accept = isset($this->server['HTTP_ACCEPT']) ? $this->server['HTTP_ACCEPT'] : $_SERVER['HTTP_ACCEPT'];
|
||||
$accept = $this->server('HTTP_ACCEPT');
|
||||
if (empty($accept)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user