Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
45ab2339
Commit
45ab2339
authored
Jan 13, 2006
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #1394565: SimpleHTTPServer now doesn't choke on query paramters
any more.
parent
4edd989e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
Lib/SimpleHTTPServer.py
Lib/SimpleHTTPServer.py
+3
-0
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/SimpleHTTPServer.py
View file @
45ab2339
...
...
@@ -14,6 +14,7 @@ import os
import
posixpath
import
BaseHTTPServer
import
urllib
import
urlparse
import
cgi
import
shutil
import
mimetypes
...
...
@@ -136,6 +137,8 @@ class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
probably be diagnosed.)
"""
# abandon query parameters
path
=
urlparse
.
urlparse
(
path
)[
2
]
path
=
posixpath
.
normpath
(
urllib
.
unquote
(
path
))
words
=
path
.
split
(
'/'
)
words
=
filter
(
None
,
words
)
...
...
Misc/NEWS
View file @
45ab2339
...
...
@@ -335,6 +335,9 @@ Extension Modules
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
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment