Skip to content

Commit

Permalink
Fixes #203: Failure in Fortiguard URL Category due to http instead of…
Browse files Browse the repository at this point in the history
… https
  • Loading branch information
ecapuano authored and 3c7 committed Feb 28, 2018
1 parent ef96c74 commit a405339
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 @@ -36,7 +36,7 @@ def run(self):
if self.data_type == 'domain' or self.data_type == 'url':
try:
pattern = re.compile("(?:Category: )([\w\s]+)")
baseurl = 'http://www.fortiguard.com/webfilter?q='
baseurl = 'https://www.fortiguard.com/webfilter?q='
url = baseurl + self.getData()
req = requests.get(url)
category_match = re.search(pattern, req.content, flags=0)
Expand Down

0 comments on commit a405339

Please sign in to comment.