Skip to content

Commit

Permalink
Fix copy-pasta in CookieJar
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored Oct 21, 2024
1 parent efed370 commit 9ec7653
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Loader/Http/Cookies/CookieJar.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ protected function buildSetCookieHeaderFromBrowserCookie(\HeadlessChromium\Cooki
$header .= '; Expires=' . $this->formatExpiresValue($cookie->offsetGet('expires'));
}

if ($cookie->offsetExists('max-age') && !empty($cookie->offsetGet('path'))) {
if ($cookie->offsetExists('max-age') && !empty($cookie->offsetGet('max-age'))) {
$header .= '; Max-Age=' . $cookie->offsetGet('max-age');
}

Expand Down

0 comments on commit 9ec7653

Please sign in to comment.