Skip to content

Commit 48b7813

Browse files
authored
fix(http): correct header presence check for falsy values (#2159)
1 parent 027a76f commit 48b7813

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/http/src/RequestHeaders.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function get(string $name, ?string $default = null): ?string
4848

4949
public function has(string $name): bool
5050
{
51-
return (bool) $this->get($name);
51+
return $this->offsetExists($name);
5252
}
5353

5454
public function getHeader(string $name): Header

0 commit comments

Comments
 (0)