Skip to content

Commit b0d1a14

Browse files
committed
Fix: metatag regexp search in bytes failed
1 parent 537b3e1 commit b0d1a14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

domcheck/strategies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def check_meta_tag(domain, prefix, code):
7474
res = urlopen(req, timeout=2)
7575
if res.code == 200:
7676
# Expect the </head> to be found in the first 100k of the page
77-
content = res.read(100000)
77+
content = str(res.read(100000))
7878
res.close()
7979
return search_meta_tag(content, prefix, code)
8080
else:

0 commit comments

Comments
 (0)