diff --git a/securityheaders/securityheader.py b/securityheaders/securityheader.py index 4041c64..f0fe18a 100644 --- a/securityheaders/securityheader.py +++ b/securityheaders/securityheader.py @@ -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 """