From a9d69aa681d60858d2fa05a6fec456efc510a1f1 Mon Sep 17 00:00:00 2001 From: Jed Reynolds Date: Fri, 5 Jun 2020 14:45:41 -0700 Subject: [PATCH] LFRequest.py fixes check --- py-json/LANforge/LFRequest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py-json/LANforge/LFRequest.py b/py-json/LANforge/LFRequest.py index c2167761..9fc7be73 100644 --- a/py-json/LANforge/LFRequest.py +++ b/py-json/LANforge/LFRequest.py @@ -24,7 +24,7 @@ class LFRequest: 'Accept': 'application/json'} 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://") url = "http://" + url if uri is not None: