From 5d23d72ff570f349e53eb5c9f1b2a717f25b3422 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sat, 8 Sep 2012 17:58:03 +0200 Subject: [PATCH] Fix for an Issue #176 --- lib/request/connect.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/request/connect.py b/lib/request/connect.py index f9b18b895..6e5c75381 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -199,8 +199,10 @@ class Connect: code = None page = None + + _ = urlparse.urlsplit(url) requestMsg = u"HTTP request [#%d]:\n%s " % (threadData.lastRequestUID, method or (HTTPMETHOD.POST if post else HTTPMETHOD.GET)) - requestMsg += ("%s" % urlparse.urlsplit(url)[2] or "/") if not any((refreshing, crawling)) else url + requestMsg += ("%s%s" % (_.path or "/", ("?%s" % _.query) if _.query else "")) if not any((refreshing, crawling)) else url responseMsg = u"HTTP response " requestHeaders = u"" responseHeaders = None