This commit is contained in:
2020-09-08 01:02:17 +08:00
parent 26d81cd8bc
commit cbf961c4e7
+1 -1
View File
@@ -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;