From 339870121926f56294d8ccbca381d5d29c07cac0 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sat, 5 Feb 2005 01:33:16 +0000 Subject: [PATCH] SF patch #1116583: NameError in cookielib domain check --- Lib/cookielib.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Lib/cookielib.py b/Lib/cookielib.py index a125b2198675..86479f864ada 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 -- 2.47.3