Kaydet (Commit) b0ce820b authored tarafından Senthil Kumaran's avatar Senthil Kumaran

merge from 3.3

...@@ -789,7 +789,7 @@ class SimpleHTTPRequestHandler(BaseHTTPRequestHandler): ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment