merge from 3.3

This commit is contained in:
Senthil Kumaran 2013-09-29 18:59:27 -07:00
commit b0ce820bb3

View File

@ -789,7 +789,7 @@ class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
path = path.split('?',1)[0]
path = path.split('#',1)[0]
# Don't forget explicit trailing slash when normalizing. Issue17324
trailing_slash = True if path.rstrip().endswith('/') else False
trailing_slash = path.rstrip().endswith('/')
path = posixpath.normpath(urllib.parse.unquote(path))
words = path.split('/')
words = filter(None, words)