Skip to content

Commit

Permalink
Open http and https URIs with urllib
Browse files Browse the repository at this point in the history
  • Loading branch information
Slashbunny committed Nov 3, 2019
1 parent f5b6e83 commit 517a2aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion download.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def get_plugin_config(config_uri):
# Try to open the URI as a URL or fall back to opening local file
try:
config_uri_parsed = urlparse(config_uri)
if config_uri_parsed.scheme == 'https':
if config_uri_parsed.scheme in ['https', 'http']:
url = urlopen(config_uri)
yaml_data = url.read()
else:
Expand Down

0 comments on commit 517a2aa

Please sign in to comment.