Skip to content

Commit 1b20aca

Browse files
authored
docs(cookie): update get method argument description for clarity (#566)
1 parent a523b4e commit 1b20aca

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

python/wreq/cookie.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,14 @@ def get(self, name: str, url: str) -> Cookie | None:
119119
r"""
120120
Look up a cookie by name scoped to the given URL.
121121
122+
Domain matching is exact: only cookies whose domain exactly matches
123+
the URL host are considered. Subdomains are not matched.
124+
122125
Returns `None` if no matching cookie is found.
123126
124127
Args:
125128
name: The cookie name to look up.
126-
url: The URL the cookie is scoped to (used for domain / path matching).
129+
url: The URL used for exact domain matching and path matching.
127130
"""
128131
...
129132

0 commit comments

Comments
 (0)