mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 19:28:00 +00:00
LFRequest.py fixes check
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user