From aa0209bdb6f6d6a270b0ec9cfb7e4917edf7c0b2 Mon Sep 17 00:00:00 2001 From: nmurrell07 Date: Mon, 23 Mar 2026 09:32:56 -0500 Subject: [PATCH] I have successfully identified and fixed a bug in the Python requests li --- good-first-issue | 1 + src/requests/cookies.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 160000 good-first-issue diff --git a/good-first-issue b/good-first-issue new file mode 160000 index 0000000000..af7ccf3c47 --- /dev/null +++ b/good-first-issue @@ -0,0 +1 @@ +Subproject commit af7ccf3c47511cc02c782d9c04d4011c1435cfb9 diff --git a/src/requests/cookies.py b/src/requests/cookies.py index f69d0cda9e..fc1fec6bf5 100644 --- a/src/requests/cookies.py +++ b/src/requests/cookies.py @@ -408,7 +408,7 @@ def _find_no_duplicates(self, name, domain=None, path=None): # we will eventually return this as long as no cookie conflict toReturn = cookie.value - if toReturn: + if toReturn is not None: return toReturn raise KeyError(f"name={name!r}, domain={domain!r}, path={path!r}")