Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion requestium/requestium_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def ensure_add_cookie(self, cookie: dict[str, Any], override_domain: str | None

# If we fail adding the cookie, retry with a more permissive domain
if not cookie_added:
cookie["domain"] = tldextract.extract(cookie["domain"]).registered_domain
cookie["domain"] = tldextract.extract(cookie["domain"]).top_domain_under_public_suffix
cookie_added = self.try_add_cookie(cookie)
if not cookie_added:
msg = f"Couldn't add the following cookie to the webdriver: {cookie}"
Expand Down
Loading