From 517a2aa19d5ea9eaa2a7a1fd6f41b110fc5a6e5c Mon Sep 17 00:00:00 2001 From: Slashbunny Date: Sun, 3 Nov 2019 11:41:51 -0500 Subject: [PATCH] Open http and https URIs with urllib --- download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/download.py b/download.py index db75483..5faaeba 100755 --- a/download.py +++ b/download.py @@ -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: