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
Terry Jan Reedy
0daddbdb7a
Issue #20155 : Fix non-buildbot test failure on Windows. Patch by Claudiu Popa,
...
revised by R. David Murray.
2014-10-18 17:10:02 -04:00
Ned Deily
c89376292e
Issue #21323 : Fix CGIHTTPServer to again handle scripts in CGI subdirectories,
...
broken by the fix for security issue #19435 . Patch by Zach Byrne.
2014-07-12 22:01:15 -07:00
R David Murray
3eb76fc10b
#20155 : use fake HTTP method names so windows doesn't hang the tests.
...
Windows was seeing the 'GET' generated by these tests as invalid and forcibly
closing the socket, causing the test to fail.
Patch by Jeff Allen.
2014-06-24 16:49:24 -04:00
Benjamin Peterson
8d24d77c63
url unquote the path before checking if it refers to a CGI script ( closes #21766 )
2014-06-14 18:36:29 -07:00
Benjamin Peterson
3c0027b721
use with statement
2014-04-04 13:59:33 -04:00
Benjamin Peterson
c2dafe60bc
explicitly close file object ( #21128 )
2014-04-04 13:56:44 -04:00
Serhiy Storchaka
528bed8e4a
Issue #20555 : Use specific asserts in urllib, httplib, ftplib, cgi, wsgiref tests.
2014-02-08 14:49:55 +02:00
Benjamin Peterson
1ef959ac3d
use the collapsed path in the run_cgi method ( closes #19435 )
2013-10-30 12:43:09 -04: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
5f7e7345cf
Issue 10484 - Incorporate improvements to CGI module - Suggested by Glenn Linderman. Refactor code and tests
2012-04-12 02:23:23 +08:00
Senthil Kumaran
fb2e874707
fix the incorrect changes made for PATH_INFO value - Issue10484
2012-04-11 03:07:57 +08:00
Senthil Kumaran
51a65c9161
2.7 - Issue #10484 : Fix the CGIHTTPServer's PATH_INFO handling problem
2012-03-16 01:07:16 -07:00
Charles-François Natali
09f871462f
Issue #13308 : Fix test_httpservers failures when run as root.
2011-11-02 19:32:54 +01:00
Ezio Melotti
c2077b0d9b
#11565 : Fix several typos. Patch by Piotr Kasprzyk.
2011-03-16 12:34:31 +02:00
Antoine Pitrou
2623ae9074
svnmerge fooled me. That test class already existed.
2010-12-16 17:18:49 +00:00
Antoine Pitrou
47d9b0e08a
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 backported some tests)
2010-12-16 17:11:34 +00:00
Brian Curtin
55b6251c9d
Merged revisions 86006 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86006 | brian.curtin | 2010-10-30 19:34:23 -0500 (Sat, 30 Oct 2010) | 3 lines
Fix ResourceWarning for an unclosed socket.
test_return_header_keep_alive - Added a cleanup call for the socket.
........
2010-10-31 00:36:01 +00:00
Senthil Kumaran
a9bd0cc67e
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:16:52 +00:00
Senthil Kumaran
b643fc6d66
Added BaseHTTPRequestHandler related tests.
2010-09-30 06:40:56 +00:00
Victor Stinner
6a10281d33
Issue #7449 , last part (11): fix many tests if thread support is disabled
...
* Use try/except ImportError or test_support.import_module() to import thread
and threading modules
* Add @unittest.skipUnless(threading, ...) to testcases using threads
2010-04-27 23:55:59 +00:00
Antoine Pitrou
1ca8c19b65
Replace a Lock with a better suited Event.
2010-04-25 21:15:50 +00:00
Florent Xicluna
0805e6eed9
#7668 : Fix test_httpservers failure when sys.executable contains non-ASCII bytes.
2010-03-22 17:18:18 +00:00
Florent Xicluna
bc27c6a5aa
Various tests cleanup: check_warnings/check_py3k_warnings, unittest.assert* and setUp/tearDown.
2010-03-19 18:34:55 +00:00
Antoine Pitrou
85bd5879b2
(Hopefully) suppress transient refleaks in test_httpservers.
2009-10-27 18:50:52 +00:00
Nick Coghlan
fd4903bf05
Move restoration of the os.environ object into the context manager where it belongs
2009-10-17 15:45:52 +00:00
Nick Coghlan
87c03b3108
Revert changes made to environment in test_httpservers
2009-10-17 15:23:08 +00:00
Benjamin Peterson
5c8da86f3a
convert usage of fail* to assert*
2009-06-30 22:57:08 +00:00
Gregory P. Smith
923ba361d8
- Issue #2254 : Fix CGIHTTPServer information disclosure. Relative paths are
...
now collapsed within the url properly before looking in cgi_directories.
2009-04-06 06:33:26 +00:00
Georg Brandl
7bb1653cc3
Argh, this is the *actual* test that works under Windows.
2008-05-20 06:47:31 +00:00
Georg Brandl
b740f6a0c7
Activate two more test cases in test_httpservers.
2008-05-20 06:15:36 +00:00
Georg Brandl
f899dfa1d1
GHOP #134 , #171 , #137 : unit tests for the three HTTPServer modules.
2008-05-18 09:12:20 +00:00