mirror of
https://github.com/python/cpython.git
synced 2025-10-12 09:53:19 +00:00
merge from 3.3
This commit is contained in:
commit
b0ce820bb3
1 changed files with 1 additions and 1 deletions
|
@ -789,7 +789,7 @@ class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
|
||||||
path = path.split('?',1)[0]
|
path = path.split('?',1)[0]
|
||||||
path = path.split('#',1)[0]
|
path = path.split('#',1)[0]
|
||||||
# Don't forget explicit trailing slash when normalizing. Issue17324
|
# 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))
|
path = posixpath.normpath(urllib.parse.unquote(path))
|
||||||
words = path.split('/')
|
words = path.split('/')
|
||||||
words = filter(None, words)
|
words = filter(None, words)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue