fix: sanitize cookie expires for Playwright compatibility #85
Reference in New Issue
Block a user
Delete Branch "fix/84-cookie-expires-validation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
expiresvalue incookieToPlaywrightOptionalCookie()so that zerotime.Timeor non-positive unix timestamps are converted to-1(session cookie), which is what Playwright expects."Cookie should have a valid expires"warning that fires on every browser init when loading cookies from the jar.Changes
playwright.go: Added expires validation before constructingOptionalCookie. Ifcookie.Expires.IsZero()or the unix timestamp is<= 0, expires is set to-1.Fixes #84