Minor fix

This commit is contained in:
stamparm 2013-05-27 10:38:47 +02:00
parent f3f752d85c
commit 659c0bb418

View File

@ -256,8 +256,8 @@ class Connect(object):
socket.setdefaulttimeout(timeout)
if direct_:
if "?" in url:
url, params = url.split("?")
if '?' in url:
url, params = url.split('?', 1)
params = urlencode(params)
url = "%s?%s" % (url, params)
requestMsg += "?%s" % params