mirror of
https://github.com/python/cpython.git
synced 2024-11-25 10:54:51 +08:00
merge from 3.3
This commit is contained in:
commit
b0ce820bb3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user