diff options
author | Raymond Hettinger <python@rcn.com> | 2005-02-05 01:31:19 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2005-02-05 01:31:19 +0000 |
commit | c2b4b63f306c7149a4a62001a3954e7d5dd8d170 (patch) | |
tree | 77b5e33329dc939b8137f48a95b25d9fbd774689 /Lib | |
parent | 9180e3d4fcb92b78aa477e07aee99ff1c4ea7f70 (diff) | |
download | cpython-c2b4b63f306c7149a4a62001a3954e7d5dd8d170.tar.gz |
SF patch #1116583: NameError in cookielib domain check
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/cookielib.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/cookielib.py b/Lib/cookielib.py index a125b21986..86479f864a 100644 --- a/Lib/cookielib.py +++ b/Lib/cookielib.py @@ -1134,11 +1134,10 @@ class DefaultCookiePolicy(CookiePolicy): # having to load lots of MSIE cookie files unless necessary. req_host, erhn = eff_request_host(request) if not req_host.startswith("."): - dotted_req_host = "."+req_host + req_host = "."+req_host if not erhn.startswith("."): - dotted_erhn = "."+erhn - if not (dotted_req_host.endswith(domain) or - dotted_erhn.endswith(domain)): + erhn = "."+erhn + if not (req_host.endswith(domain) or erhn.endswith(domain)): #debug(" request domain %s does not match cookie domain %s", # req_host, domain) return False |