Senthil Kumaran
884f0585a4
Reverting the changeset 5d76a4746d9d made for Issue #12921
2013-03-05 02:26:50 -08:00
Senthil Kumaran
1e7551dc87
Reverting the changeset 5126e62c60af made for Issue #12921
2013-03-05 02:25:58 -08:00
Senthil Kumaran
c37f835a43
Fix Issue #12921 : BaseHTTPServer's send_error should send the correct error
...
response message when send_error includes a message in addition to error
status. Patch contributed by Karl.
2013-03-05 01:23:44 -08:00
Senthil Kumaran
3fb066d286
Fix Issue #12921 : BaseHTTPServer's send_error should send the correct error
...
response message when send_error includes a message in addition to error
status. Patch contributed by Karl.
2013-03-05 01:22:57 -08:00
Senthil Kumaran
1251fafcc5
Issue 14989: http.server --cgi option can enable the CGI http server.
2012-06-03 16:15:54 +08:00
Hynek Schlawack
51b2ed51f0
#14809 : Add HTTP status codes from RFC 6585 to http.server and http.client
...
Patch by EungJun Yi.
2012-05-16 09:51:07 +02:00
Senthil Kumaran
4ca008b643
issue6085 - update docs in default branch
2012-04-29 13:44:14 +08:00
Senthil Kumaran
db727b4a77
Fix issue6085 - Remove the delay caused by fqdn lookup while logging in BaseHTTPRequestHandler
2012-04-29 13:41:03 +08:00
Senthil Kumaran
1aacba497b
Fix Issue6085 - SimpleHTTPServer address_string to return client ip instead of client hostname
2012-04-29 12:51:54 +08:00
Senthil Kumaran
690598aba2
merge to default - Issue 10484 - Incorporate improvements to CGI module - Suggested by Glenn Linderman. Refactor code and tests
2012-04-12 02:37:11 +08:00
Senthil Kumaran
d70846b1b1
3.2 - Issue 10484 - Incorporate improvements to CGI module - Suggested by Glenn Linderman. Refactor code and tests
2012-04-12 02:34:32 +08:00
Senthil Kumaran
d05853da97
merge - fix the incorrect changes made for PATH_INFO value - Issue10484
2012-04-11 03:16:16 +08:00
Senthil Kumaran
dbb369d0ef
3.2- fix the incorrect changes made for PATH_INFO value - Issue10484
2012-04-11 03:15:28 +08:00
Senthil Kumaran
209d70e579
closes issue10484 - Fix the http.server's cgi PATH_INFO handling problem
2012-03-16 01:14:51 -07:00
Senthil Kumaran
be3f851411
closes issue10484 - Fix the http.server's cgi PATH_INFO handling problem
2012-03-16 01:13:50 -07:00
Senthil Kumaran
3075549d53
Minor code style improvements in http.server suggested in Issue13294.
2011-12-23 17:03:41 +08:00
Senthil Kumaran
d22983d081
merge from 3.2. Minor code style improvements in http.server suggested in Issue13294.
2011-12-23 17:04:23 +08:00
Ezio Melotti
ca897e960a
#13295 : http.server now produces valid HTML 4.01 strict.
2011-11-02 19:33:29 +02:00
Victor Stinner
fb25ba9b07
Close #12289 : Fix "is executable?" test in the CGI server
...
Use os.access(path, os.X_OK) instead of (os.stat(path).st_mode & 0o111 != 0),
and ignore the test on Windows.
2011-06-20 17:45:54 +02:00
Senthil Kumaran
c7ae19b6a7
Issue #3709 : a flush_headers method to BaseHTTPRequestHandler which manages the
...
sending of headers to output stream and flushing the internal headers buffer.
Patch contribution by Andrew Schaaf
2011-05-09 23:25:02 +08:00
Senthil Kumaran
bec7886e3f
Merge from 3.1
2011-03-20 10:45:10 +08:00
Senthil Kumaran
1b407fe658
Issue #11567 - Let's have the DOCTYPE as HTML instead of XHTML.
2011-03-20 10:44:30 +08:00
Senthil Kumaran
9f9193ec37
Error message in http.server code. Missed to update in 3.1 branch initially.
2011-03-17 17:01:45 +08:00
Senthil Kumaran
b253c9f66d
Fix issue11567: http.server DEFAULT_ERROR_MESSAGE format. Patch by Gennadiy Zlobin.
2011-03-17 16:43:22 +08:00
Senthil Kumaran
dab6780c9e
merge from 3.2
2011-03-20 10:45:41 +08:00
Senthil Kumaran
1da1906871
Merge from 3.2
2011-03-17 16:48:26 +08:00
Marc-André Lemburg
8f36af7a4c
Normalize the encoding names for Latin-1 and UTF-8 to
...
'latin-1' and 'utf-8'.
These are optimized in the Python Unicode implementation
to result in more direct processing, bypassing the codec
registry.
Also see issue11303.
2011-02-25 15:42:01 +00:00
Armin Ronacher
8d96d77f9a
Issue #10980 : encode headers with latin1 instead of ASCII in the HTTP server.
...
This makes the implementation of PEP 3333 compliant servers on top of
BaseHTTPServer possible.
2011-01-22 13:13:05 +00:00
Antoine Pitrou
ff1bbba92a
Merged revisions 87373,87381 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87373 | senthil.kumaran | 2010-12-18 17:55:23 +0100 (sam., 18 déc. 2010) | 3 lines
Fix Issue6791 - Limit the HTTP header readline with _MAXLENGTH. Patch by Antoine Pitrou
........
r87381 | antoine.pitrou | 2010-12-18 18:59:18 +0100 (sam., 18 déc. 2010) | 3 lines
NEWS entry for r87373
........
2010-12-18 18:04:38 +00:00
Senthil Kumaran
5466bf1c94
Fix Issue6791 - Limit the HTTP header readline with _MAXLENGTH. Patch by Antoine Pitrou
2010-12-18 16:55:23 +00:00
Antoine Pitrou
3022ce1a14
Merged revisions 87317 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87317 | antoine.pitrou | 2010-12-16 17:48:36 +0100 (jeu., 16 déc. 2010) | 4 lines
Issue #10714 : Limit length of incoming request in http.server to 65536 bytes
for security reasons. Initial patch by Ross Lagerwall.
........
(also backport some tests)
2010-12-16 17:03:16 +00:00
Antoine Pitrou
c492437922
Issue #10714 : Limit length of incoming request in http.server to 65536 bytes
...
for security reasons. Initial patch by Ross Lagerwall.
2010-12-16 16:48:36 +00:00
Georg Brandl
cbd2ab1311
#1513299 : cleanup some map() uses where a comprehension works better.
2010-12-04 10:39:14 +00:00
Senthil Kumaran
e4dad4f8e2
Fix issue3709 - BaseHTTPRequestHandler will buffer the headers and write only on end_headers call.
2010-11-21 14:36:14 +00:00
Brian Curtin
938ece7152
Merged revisions 86195 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86195 | brian.curtin | 2010-11-05 10:04:48 -0500 (Fri, 05 Nov 2010) | 3 lines
Close subprocess pipes in the non-UNIX section of run_cgi.
Clears a number of ResourceWarnings in test_httpservers.
........
2010-11-05 15:08:19 +00:00
Brian Curtin
cbad4df179
Close subprocess pipes in the non-UNIX section of run_cgi.
...
Clears a number of ResourceWarnings in test_httpservers.
2010-11-05 15:04:48 +00:00
Georg Brandl
1f7fffb308
#2830 : add html.escape() helper and move cgi.escape() uses in the standard library to it. It defaults to quote=True and also escapes single quotes, which makes casual use safer. The cgi.escape() interface is not touched, but emits a (silent) PendingDeprecationWarning.
2010-10-15 15:57:45 +00:00
Senthil Kumaran
5e8826cd98
Merged revisions 85202 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85202 | senthil.kumaran | 2010-10-03 23:25:45 +0530 (Sun, 03 Oct 2010) | 4 lines
Fix Issue9272 - Change CGIHTTPServer to give the child program a copy of os.environ
........
2010-10-03 18:04:52 +00:00
Senthil Kumaran
4271372a71
Fix Issue9272 - Change CGIHTTPServer to give the child program a copy of os.environ
2010-10-03 17:55:45 +00:00
Senthil Kumaran
0f476d49f8
Issue1491 - BaseHTTPServer incorrectly implements response code 100
2010-09-30 06:09:18 +00:00
Georg Brandl
caa78fee03
Merged revisions 83371,83390 via svnmerge from
...
svn+ssh://svn.python.org/python/branches/py3k
........
r83371 | georg.brandl | 2010-07-31 23:54:24 +0200 (Sa, 31 Jul 2010) | 1 line
#8292 : Fix three instances of truth tests on return values of filter() (which is always true in Python 3).
........
r83390 | georg.brandl | 2010-08-01 10:07:49 +0200 (So, 01 Aug 2010) | 1 line
#8230 : make Lib/test/sortperf.py run on Python 3.
........
2010-08-01 19:07:28 +00:00
Georg Brandl
62e2ca2193
#8292 : Fix three instances of truth tests on return values of filter() (which is always true in Python 3).
2010-07-31 21:54:24 +00:00
Senthil Kumaran
613c61c741
Merged revisions 78301 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r78301 | senthil.kumaran | 2010-02-22 16:30:50 +0530 (Mon, 22 Feb 2010) | 10 lines
Merged revisions 78299 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78299 | senthil.kumaran | 2010-02-22 16:25:08 +0530 (Mon, 22 Feb 2010) | 4 lines
Fix Issue7172 - BaseHTTPServer.BaseHTTPRequestHandler.responses[405] - changing
server to resource in the 405 response msg.
........
................
2010-02-22 11:02:53 +00:00
Senthil Kumaran
7aa2621720
Merged revisions 78299 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78299 | senthil.kumaran | 2010-02-22 16:25:08 +0530 (Mon, 22 Feb 2010) | 4 lines
Fix Issue7172 - BaseHTTPServer.BaseHTTPRequestHandler.responses[405] - changing
server to resource in the 405 response msg.
........
2010-02-22 11:00:50 +00:00
Senthil Kumaran
ca5130cba3
Merged revisions 76210 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r76210 | senthil.kumaran | 2009-11-11 09:47:53 +0530 (Wed, 11 Nov 2009) | 10 lines
Merged revisions 76208 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r76208 | senthil.kumaran | 2009-11-11 07:04:44 +0530 (Wed, 11 Nov 2009) | 3 lines
CGIHTTPRequestHandler.run_cgi() to use subprocess for Non Unix platforms. Fix
based on Issue1235.
........
................
2009-11-11 04:21:22 +00:00
Senthil Kumaran
e29cd162ed
Merged revisions 76208 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r76208 | senthil.kumaran | 2009-11-11 07:04:44 +0530 (Wed, 11 Nov 2009) | 3 lines
CGIHTTPRequestHandler.run_cgi() to use subprocess for Non Unix platforms. Fix
based on Issue1235.
........
2009-11-11 04:17:53 +00:00
Kristján Valur Jónsson
985fc6a304
http://bugs.python.org/issue6267
...
porting revision 73638 to py3k
2009-07-01 10:01:31 +00:00
Georg Brandl
706824f19f
More codestring -> codebytes.
2009-06-04 09:42:55 +00:00
Benjamin Peterson
a7deeeeed7
port r72246
2009-05-08 20:54:42 +00:00
Benjamin Peterson
ad71f0f016
Merged revisions 71303 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r71303 | gregory.p.smith | 2009-04-06 01:33:26 -0500 (Mon, 06 Apr 2009) | 3 lines
- Issue #2254 : Fix CGIHTTPServer information disclosure. Relative paths are
now collapsed within the url properly before looking in cgi_directories.
........
2009-04-11 20:12:10 +00:00