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}")