This commit is contained in:
2020-09-17 19:10:38 +08:00
parent cc80e0ca31
commit c4c5806914
3 changed files with 12 additions and 4 deletions
+4 -1
View File
@@ -109,7 +109,10 @@ class HttpHeaders
*/
public function getHeader($name)
{
return $this->headers[$name] ?? null;
if (!isset($this->headers[$name])) {
return null;
}
return $this->headers[$name];
}