This commit is contained in:
Kovid Goyal 2017-04-25 21:11:41 +05:30
parent 58eb7ab38a
commit 60278959b1
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -24,7 +24,7 @@ def encode_query(query, qchar):
if keys.length:
for k in keys:
val = query[k]
if val is undefined or val is None:
if val is undefined or val is None or val is '':
continue
ans += qchar + encodeURIComponent(k) + '=' + encode_query_component(val.toString())
qchar = '&'