Indicate non-zero length

merge-requests/28/head
Bob Mottram 2022-08-28 15:19:38 +01:00
parent 2d9dd2c145
commit 84d57590b8
1 changed files with 3 additions and 1 deletions

View File

@ -2269,8 +2269,10 @@ class PubServer(BaseHTTPRequestHandler):
if not skip_param:
login_str += login_prm + '='
else:
if len(login_prm.split('&')[0]) > 0:
len_str = login_prm.split('&')[0]
if len(len_str) > 0:
login_str += login_prm + '*'
len_str = ''
if '&' in login_prm:
login_str += \
'&' + login_prm.split('&')[1] + '='