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