LFRequest.py fixes check

This commit is contained in:
Jed Reynolds
2020-06-05 14:45:41 -07:00
parent ca111483b7
commit a9d69aa681

View File

@@ -24,7 +24,7 @@ class LFRequest:
'Accept': 'application/json'} 'Accept': 'application/json'}
def __init__(self, url, uri=None): def __init__(self, url, uri=None):
if "http://" not in url or "https://" not in url: if not url.startswith("http://") and not url.startswith("https://"):
print("No http:// or https:// found, prepending http://") print("No http:// or https:// found, prepending http://")
url = "http://" + url url = "http://" + url
if uri is not None: if uri is not None: