summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2005-02-05 01:33:16 (GMT)
committerRaymond Hettinger <python@rcn.com>2005-02-05 01:33:16 (GMT)
commit339870121926f56294d8ccbca381d5d29c07cac0 (patch)
tree2a6df5534a3c7359a03812455f257a7c828176a2
parenta1d92096ea9fcac8b59bc688960339116fd3fcef (diff)
downloadcpython-339870121926f56294d8ccbca381d5d29c07cac0.zip
cpython-339870121926f56294d8ccbca381d5d29c07cac0.tar.gz
cpython-339870121926f56294d8ccbca381d5d29c07cac0.tar.bz2
SF patch #1116583: NameError in cookielib domain check
-rw-r--r--Lib/cookielib.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/cookielib.py b/Lib/cookielib.py
index a125b21..86479f8 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