Benjamin Peterson
a71cfc5cf3
fix behavior of trailing slash redirection when a query string is involved ( closes #23112 )
2014-12-26 10:53:43 -06:00
Serhiy Storchaka
1adbacfd1c
Issue #20331 : Fixed possible FD leaks in various modules:
...
SimpleHTTPServer, imghdr, mailcap, mimetypes, xml.etree.
2014-01-25 19:42:27 +02:00
Senthil Kumaran
a719eed4d9
Code improvement. Review comment by Eric V. Smith
2013-09-29 18:57:42 -07:00
Senthil Kumaran
d4fac04fde
Fix SimpleHTTPServer's request handling case on trailing '/'.
...
Patch contributed by Vajrasky Kok. Addresses Issue #17324
2013-09-13 00:18:55 -07:00
Senthil Kumaran
dfd1579e54
merge from 2.5 branch.
2011-03-17 14:23:24 +08:00
Senthil Kumaran
3853586e0c
Fix issue11442 - Add a charset parameter to the Content-type to avoid XSS attacks.
...
Patch by Tom N. (Backported from py3k codeline).
2011-03-17 12:34:18 +08:00
Amaury Forgeot d'Arc
0f7cddc308
Issue839496: SimpleHTTPServer should open all files in binary mode.
...
Forward-port of 38255 (2005/01/15!)
This was already fixed in 2.4, but never merged into trunk...
py3k is already right, thanks to the bytes/str distinction!
Should be backported to 2.5.
2008-07-06 21:34:39 +00:00
Andrew M. Kuchling
a6298528e1
#2169 : make generated HTML more valid
2008-02-28 14:03:03 +00:00
Christian Heimes
c5f05e45cf
Patch #2167 from calvin: Remove unused imports
2008-02-23 17:40:11 +00:00
Facundo Batista
d14600ec94
Issue 1224. Now we support again the double slash in the URL.
...
Thanks Anthony Lenton.
2008-02-18 12:48:43 +00:00
Andrew M. Kuchling
60775f29de
[Patch #827559 from Chris Gonnerman] Make SimpleHTTPServer redirect when a directory URL is missing the trailing slash; this lets relative links work.
2006-12-22 19:08:41 +00:00
Andrew M. Kuchling
4281902545
[Patch #827559 from Chris Gonnerman] Make SimpleHTTPServer redirect when a directory URL is missing the trailing slash; this lets relative links work.
2006-12-22 19:06:16 +00:00
Tim Peters
5d538b603f
Whitespace normalization.
2006-06-14 22:38:13 +00:00
Georg Brandl
83cc0d0add
Bug #1117556 : SimpleHTTPServer now tries to find and use the system's
...
mime.types file for determining MIME types.
2006-06-14 08:50:03 +00:00
Georg Brandl
5d076961e2
Patch #1417555 : SimpleHTTPServer now returns Last-Modified headers.
2006-02-17 13:34:16 +00:00
Georg Brandl
45ab233935
Bug #1394565 : SimpleHTTPServer now doesn't choke on query paramters
...
any more.
2006-01-13 17:05:56 +00:00
Georg Brandl
6ee6952eb2
Patch #1360443 : Make SimpleHTTPServer display unencoded directory names.
2005-12-16 19:36:08 +00:00
Raymond Hettinger
a617271dbd
Use cStringIO where available.
2004-12-31 19:15:26 +00:00
Johannes Gijsbers
6d63a8dd09
Patch #1011123 : Use urllib.quote() instead of cgi.escape() for encoding the
...
href attribute in list_directory(). This fixes the links for legal Unix
filenames such as 'a"b'.
2004-08-21 10:43:29 +00:00
Andrew M. Kuchling
b839c1f33f
[Bug #866222 ] Update docstrings.
2004-08-07 19:02:19 +00:00
Raymond Hettinger
6b59f5f3fd
Let library modules use the new keyword arguments for list.sort().
2003-10-16 05:53:16 +00:00
Raymond Hettinger
54f0222547
SF 563203. Replaced 'has_key()' with 'in'.
2002-06-01 14:18:47 +00:00
Martin v. Löwis
587c98c863
Patch #430706 : Persistent connections in BaseHTTPServer.
2002-03-17 18:37:22 +00:00
Eric S. Raymond
304b6a3225
Correction after translation test.
2001-02-09 10:26:06 +00:00
Eric S. Raymond
bf97c9d87b
String method conversion.
2001-02-09 10:18:37 +00:00