Skip to content

Commit ece1338

Browse files
bmoslordjabez
authored andcommitted
update deprecated tldextract property registered_domain to top_domain_under_public_suffix
1 parent 9c5e8fd commit ece1338

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

requestium/requestium_mixin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def ensure_add_cookie(self, cookie: dict[str, Any], override_domain: str | None
8585

8686
# If we fail adding the cookie, retry with a more permissive domain
8787
if not cookie_added:
88-
cookie["domain"] = tldextract.extract(cookie["domain"]).registered_domain
88+
cookie["domain"] = tldextract.extract(cookie["domain"]).top_domain_under_public_suffix
8989
cookie_added = self.try_add_cookie(cookie)
9090
if not cookie_added:
9191
msg = f"Couldn't add the following cookie to the webdriver: {cookie}"

0 commit comments

Comments
 (0)