Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion securityheaders/securityheader.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def check_headers(self, url, follow_redirects = 3, options=None):
""" Follow redirect """
if (res.status >= 300 and res.status < 400 and follow_redirects > 0):
for header in headers:
if (header[0] == 'location'):
if (header[0].lower() == 'location'):
return self.check_headers((urlid, header[1]), follow_redirects - 1, options)

""" Loop through headers and evaluate the risk """
Expand Down