]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
SF patch #1116583: NameError in cookielib domain check
authorRaymond Hettinger <python@rcn.com>
Sat, 5 Feb 2005 01:33:16 +0000 (01:33 +0000)
committerRaymond Hettinger <python@rcn.com>
Sat, 5 Feb 2005 01:33:16 +0000 (01:33 +0000)
Lib/cookielib.py

index a125b219867528f9b753129742cdff5d2892c001..86479f864adaa7b9b3c1d85fda7673cf72d8e28e 100644 (file)
@@ -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