From c2b2ccd2b597a4593e13f30395674a695ae8b1a3 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sat, 17 Jan 2015 17:31:00 +0100 Subject: [PATCH] Minor bug fix --- lib/request/connect.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/request/connect.py b/lib/request/connect.py index 9c9b097f3..808bd0222 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -304,8 +304,12 @@ class Connect(object): get = urlencode(get, limit=True) if get: - url = "%s?%s" % (url, get) - requestMsg += "?%s" % get + if '?' in url: + url = "%s%s%s" % (url, DEFAULT_GET_POST_DELIMITER, get) + requestMsg += "%s%s" % (DEFAULT_GET_POST_DELIMITER, get) + else: + url = "%s?%s" % (url, get) + requestMsg += "?%s" % get if PLACE.POST in conf.parameters and not post and method != HTTPMETHOD.GET: post = conf.parameters[PLACE.POST]