Skip to content

Commit

Permalink
Use req.text instead of req.content
Browse files Browse the repository at this point in the history
  • Loading branch information
srilumpa committed Jun 4, 2019
1 parent 8dae6a8 commit 9556677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analyzers/Fortiguard/urlcategory.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def run(self):
baseurl = 'https://www.fortiguard.com/webfilter?q='
url = baseurl + self.get_data()
req = requests.get(url)
category_match = re.search(pattern, req.content, flags=0)
category_match = re.search(pattern, req.text, flags=0)
self.report({
'category': category_match.group(1)
})
Expand Down

0 comments on commit 9556677

Please sign in to comment.