1 parent b443ed3 commit 4797970Copy full SHA for 4797970
1 file changed
check_https.py
@@ -105,7 +105,7 @@ def fetch_through_redirects(url):
105
resp.close()
106
# Check for sneaky <meta> redirects.
107
for meta in META_XPATH(tree):
108
- m = re.match("0;\s*url=['\"](.+?)['\"]", meta.get("content"))
+ m = re.match(r"0;\s*url=['\"](.+?)['\"]", meta.get("content"))
109
if m is not None:
110
url = m.groups()[0]
111
cont = True
@@ -190,7 +190,7 @@ def check_https_page(info):
190
good_sts = info.new_check()
191
sts = resp.headers.get("Strict-Transport-Security")
192
if sts is not None:
193
- m = re.search("max-age=(\d+)", sts)
+ m = re.search(r"max-age=(\d+)", sts)
194
195
info.sts = int(m.group(1))
196
if info.sts >= 2592000:
0 commit comments