改名
This commit is contained in:
@@ -120,7 +120,7 @@ class HttpHeaders
|
|||||||
*/
|
*/
|
||||||
public function get($name, $default = null)
|
public function get($name, $default = null)
|
||||||
{
|
{
|
||||||
if (empty($value = $this->getHeader($name))) {
|
if (($value = $this->getHeader($name)) === null) {
|
||||||
return $default;
|
return $default;
|
||||||
}
|
}
|
||||||
return $value;
|
return $value;
|
||||||
|
|||||||
Reference in New Issue
Block a user