From 57bcbb458eade2850a6d7623ecddbe49c69cf334 Mon Sep 17 00:00:00 2001 From: Bruno Morisson Date: Mon, 14 Jan 2013 14:26:02 +0000 Subject: [PATCH] Update lib/request/connect.py Skip URL encode on GET requests when --skip-urlencode is set --- lib/request/connect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/request/connect.py b/lib/request/connect.py index 488586f7b4e..1153d44f3d7 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -735,8 +735,8 @@ def _randomizeParameter(paramString, randomParameter): post += "%s%s=%s" % (delimiter, name, value) else: get += "%s%s=%s" % (delimiter, name, value) - - get = urlencode(get, limit=True) + if not skipUrlEncode: + get = urlencode(get, limit=True) if post is not None: if place not in (PLACE.POST, PLACE.CUSTOM_POST) and hasattr(post, UNENCODED_ORIGINAL_VALUE): post = getattr(post, UNENCODED_ORIGINAL_VALUE)