mirror of
https://github.com/python/cpython.git
synced 2025-08-15 14:20:55 +00:00
Merged revisions 78268 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r78268 | senthil.kumaran | 2010-02-21 03:35:34 +0530 (Sun, 21 Feb 2010) | 3 lines Fix for Issue7751: urllib.urlopen("///C|/foo/bar/spam.foo") ........
This commit is contained in:
parent
502f8eb50b
commit
a241d0a8a2
2 changed files with 6 additions and 2 deletions
|
@ -177,7 +177,7 @@ class URLopener:
|
|||
fullurl = unwrap(toBytes(fullurl))
|
||||
# percent encode url. fixing lame server errors like space within url
|
||||
# parts
|
||||
fullurl = quote(fullurl, safe="%/:=&?~#+!$,;'@()*[]")
|
||||
fullurl = quote(fullurl, safe="%/:=&?~#+!$,;'@()*[]|")
|
||||
if self.tempcache and fullurl in self.tempcache:
|
||||
filename, headers = self.tempcache[fullurl]
|
||||
fp = open(filename, 'rb')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue