[Python-checkins] r42031 - in python/branches/release24-maint: Lib/SimpleHTTPServer.py Misc/NEWS
georg.brandl
python-checkins at python.org
Fri Jan 13 18:06:02 CET 2006
Author: georg.brandl
Date: Fri Jan 13 18:06:02 2006
New Revision: 42031
Modified:
python/branches/release24-maint/Lib/SimpleHTTPServer.py
python/branches/release24-maint/Misc/NEWS
Log:
Bug #1394565: SimpleHTTPServer now doesn't choke on query paramters
any more.
Modified: python/branches/release24-maint/Lib/SimpleHTTPServer.py
==============================================================================
--- python/branches/release24-maint/Lib/SimpleHTTPServer.py (original)
+++ python/branches/release24-maint/Lib/SimpleHTTPServer.py Fri Jan 13 18:06:02 2006
@@ -14,6 +14,7 @@
import posixpath
import BaseHTTPServer
import urllib
+import urlparse
import cgi
import shutil
import mimetypes
@@ -132,6 +133,8 @@
probably be diagnosed.)
"""
+ # abandon query parameters
+ path = urlparse.urlparse(path)[2]
path = posixpath.normpath(urllib.unquote(path))
words = path.split('/')
words = filter(None, words)
Modified: python/branches/release24-maint/Misc/NEWS
==============================================================================
--- python/branches/release24-maint/Misc/NEWS (original)
+++ python/branches/release24-maint/Misc/NEWS Fri Jan 13 18:06:02 2006
@@ -68,6 +68,9 @@
Library
-------
+- Bug #1394565: SimpleHTTPServer now doesn't choke on query paramters
+ any more.
+
- Bug #1403410: The warnings module now doesn't get confused
when it can't find out the module name it generates a warning for.
More information about the Python-checkins
mailing list