diff options
Diffstat (limited to 'Lib/SimpleHTTPServer.py')
| -rw-r--r-- | Lib/SimpleHTTPServer.py | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/SimpleHTTPServer.py b/Lib/SimpleHTTPServer.py index 86c669e..249e237 100644 --- a/Lib/SimpleHTTPServer.py +++ b/Lib/SimpleHTTPServer.py @@ -146,7 +146,8 @@ class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):          """          # abandon query parameters -        path = urlparse.urlparse(path)[2] +        path = path.split('?',1)[0] +        path = path.split('#',1)[0]          path = posixpath.normpath(urllib.unquote(path))          words = path.split('/')          words = filter(None, words)  | 
