Commit 7c7c4486 authored by Nicolas Delaby's avatar Nicolas Delaby Committed by Arnaud Fontaine

Add IGNORECASE flag to search header values

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils/erp5.utils.web_checker/@37453 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0b07ef48
......@@ -314,7 +314,7 @@ class HTTPCacheCheckerTestSuite(object):
x_varnish_reference_list.append((x_varnish_reference, True, url))
for header, reference_value in self.header_list.iteritems():
re_compiled = re.compile(self.generic_header_search_regex % header,
re.MULTILINE)
re.MULTILINE | re.IGNORECASE)
match_object = re_compiled.search(fetched_data)
if match_object is None:
message = 'header:%r not found for %r' % (header, url)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment