[wwwsearch-commits] r25416 - wwwsearch/ClientCookie/trunk/ClientCookie

jjlee at codespeak.net jjlee at codespeak.net
Wed Apr 5 20:40:23 CEST 2006


Author: jjlee
Date: Wed Apr  5 20:40:22 2006
New Revision: 25416

Modified:
   wwwsearch/ClientCookie/trunk/ClientCookie/_urllib2_support.py
Log:
Fix unwarranted case assumption in Refresh header value

Modified: wwwsearch/ClientCookie/trunk/ClientCookie/_urllib2_support.py
==============================================================================
--- wwwsearch/ClientCookie/trunk/ClientCookie/_urllib2_support.py	(original)
+++ wwwsearch/ClientCookie/trunk/ClientCookie/_urllib2_support.py	Wed Apr  5 20:40:22 2006
@@ -584,7 +584,7 @@
                     jj = string.find(newurl_spec, "=")
                     if jj != -1:
                         key, newurl = newurl_spec[:jj], newurl_spec[jj+1:]
-                    if key.strip() != "url":
+                    if key.strip().lower() != "url":
                         debug("bad Refresh header: %r" % refresh)
                         return response
                 else:


More information about the wwwsearch-commits mailing list