From 9856cb71dea0f5a62a6551cc6e45c735f4600684 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 28 Feb 2011 18:58:05 +0000 Subject: [PATCH] redo of the last commit with comments added --- lib/request/connect.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/request/connect.py b/lib/request/connect.py index e029534d9..bd4c8b630 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -78,7 +78,10 @@ class Connect: threadData = getCurrentThreadData() threadData.lastRequestUID += 1 - url = kwargs.get('url', conf.url) + # dirty hack because urllib2 just skips the other part of provided url + # splitted with space char while urlencoding it in the later phase + url = kwargs.get('url', conf.url).replace(" ", "%20") + get = kwargs.get('get', None) post = kwargs.get('post', None) method = kwargs.get('method', None)