From a93fc117db431df28adf53f55640413441ebd701 Mon Sep 17 00:00:00 2001 From: 0x676e67 Date: Tue, 14 Apr 2026 19:06:53 +0800 Subject: [PATCH 1/2] docs(cookie): update get method argument description for clarity --- python/wreq/cookie.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/wreq/cookie.py b/python/wreq/cookie.py index f3325cdb..6fb65853 100644 --- a/python/wreq/cookie.py +++ b/python/wreq/cookie.py @@ -119,11 +119,14 @@ def get(self, name: str, url: str) -> Cookie | None: r""" Look up a cookie by name scoped to the given URL. + Domain matching is exact: only cookies whose domain exactly matches + the URL host are considered. Subdomains are not matched. + Returns `None` if no matching cookie is found. Args: name: The cookie name to look up. - url: The URL the cookie is scoped to (used for domain / path matching). + url: The URL used for exact domain and path matching. """ ... From 75823985d2e0948d75d508c86bb57ebebfb15543 Mon Sep 17 00:00:00 2001 From: 0x676e67 Date: Tue, 14 Apr 2026 19:09:13 +0800 Subject: [PATCH 2/2] Update python/wreq/cookie.py Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- python/wreq/cookie.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/wreq/cookie.py b/python/wreq/cookie.py index 6fb65853..359b6bed 100644 --- a/python/wreq/cookie.py +++ b/python/wreq/cookie.py @@ -126,7 +126,7 @@ def get(self, name: str, url: str) -> Cookie | None: Args: name: The cookie name to look up. - url: The URL used for exact domain and path matching. + url: The URL used for exact domain matching and path matching. """ ...