Skip to content

Commit

Permalink
Satisfy checks for insecure HTTP calls
Browse files Browse the repository at this point in the history
  • Loading branch information
elceef committed Mar 21, 2024
1 parent 47ffb66 commit 1931d7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dnstwist.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ class UrlParser():
def __init__(self, url):
if not url:
raise TypeError('argument has to be non-empty string')
u = urllib.parse.urlparse(url if '://' in url else 'http://{}'.format(url))
u = urllib.parse.urlparse(url if '://' in url else '//' + url, scheme='http')
self.scheme = u.scheme.lower()
if self.scheme not in ('http', 'https'):
raise ValueError('invalid scheme') from None
Expand Down

0 comments on commit 1931d7e

Please sign in to comment.