Skip to content

Commit

Permalink
Merge pull request #10 from DominikSerafin/patch-3
Browse files Browse the repository at this point in the history
Use HTTPS as a default scheme
  • Loading branch information
niksite committed Oct 31, 2018
2 parents 59977b5 + a0d11ed commit e144500
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion url_normalize/url_normalize.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def url_normalize(url, charset='utf-8'):

# if there is no scheme use http as default scheme
if url[0] not in ['/', '-'] and ':' not in url[:7]:
url = 'http://' + url
url = 'https://' + url

# protocol indeferent url (http|https), prepend https
if len(url) > 2 and url[0] == '/' and url[1] == '/' and ':' not in url[:7]:
Expand Down

0 comments on commit e144500

Please sign in to comment.