mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-21 12:34:54 +00:00
LFRequest.py: fixes busted test for space in URL
This commit is contained in:
@@ -45,10 +45,10 @@ class LFRequest:
|
|||||||
|
|
||||||
# finding '#' prolly indicates a macvlan (eth1#0)
|
# finding '#' prolly indicates a macvlan (eth1#0)
|
||||||
# finding ' ' prolly indicates a field name that should imply %20
|
# finding ' ' prolly indicates a field name that should imply %20
|
||||||
if (self.requested_url.find('#') >= 1) or (self.requested_url.find(' ')):
|
if (self.requested_url.find('#') >= 1) or (self.requested_url.find(' ') >= 1):
|
||||||
self.requested_url = urllib.parse.quote_plus(self.requested_url)
|
self.requested_url = urllib.parse.quote_plus(self.requested_url)
|
||||||
|
|
||||||
if self.debug:
|
if True:
|
||||||
print("new LFRequest[%s]" % self.requested_url )
|
print("new LFRequest[%s]" % self.requested_url )
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user