From 10ddb755192d130996b738b6290d8c297614abff Mon Sep 17 00:00:00 2001 From: calvin Date: Thu, 1 May 2003 13:39:52 +0000 Subject: [PATCH] fix quoting git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@877 e7d03fd6-7b0d-0410-9947-9c21f3af8025 --- linkcheck/HttpUrlData.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/linkcheck/HttpUrlData.py b/linkcheck/HttpUrlData.py index fd11f25e..aabfca10 100644 --- a/linkcheck/HttpUrlData.py +++ b/linkcheck/HttpUrlData.py @@ -237,12 +237,16 @@ class HttpUrlData (ProxyUrlData): if self.urlConnection: self.closeConnection() self.urlConnection = self._getHTTPObject(host) + # quote parts before submit + map(quote, self.urlparts[2:5]) if self.proxy: path = urlparse.urlunsplit(self.urlparts) else: path = urlparse.urlunsplit(('', '', self.urlparts[2], self.urlparts[3], self.urlparts[4])) - self.urlConnection.putrequest(method, quote(path), skip_host=1) + # unquote parts again + map(unquote, self.urlparts[2:5]) + self.urlConnection.putrequest(method, path, skip_host=1) self.urlConnection.putheader("Host", host) # userinfo is from http://user@pass:host/ if self.userinfo: