mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-21 21:01:52 +00:00
Force header names to lower to allow for CaseInsensitvieDict variability
This commit is contained in:
parent
c5ad32c7aa
commit
2e32780dc7
1 changed files with 2 additions and 2 deletions
|
|
@ -36,8 +36,8 @@ class HttpHeaderInfo(_ConnectionPlugin):
|
|||
"""Check content for invalid anchors."""
|
||||
headers = []
|
||||
for name, value in url_data.headers.items():
|
||||
if name.startswith(self.prefixes):
|
||||
headers.append(name)
|
||||
if name.lower().startswith(self.prefixes):
|
||||
headers.append(name.lower())
|
||||
if headers:
|
||||
items = [u"%s=%s" % (name.capitalize(), url_data.headers[name]) for name in headers]
|
||||
info = u"HTTP headers %s" % u", ".join(items)
|
||||
|
|
|
|||
Loading…
Reference in a new issue