summaryrefslogtreecommitdiff
path: root/Lib/test/test_httpservers.py
AgeCommit message (Collapse)AuthorLines
2017-07-12bpo-26657: Fix Windows directory traversal vulnerability with http.server (#782)Victor Stinner-0/+19
Based on patch by Philipp Hagemeister. This fixes a regression caused by revision f4377699fd47. (cherry picked from commit d274b3f1f1e2d8811733fb952c9f18d7da3a376a)
2015-10-03Issue #24657: Prevent CGIRequestHandler from collapsing the URL queryMartin Panter-0/+7
Initial patch from Xiang Zhang. Also fix out-of-date _url_collapse_path() doc string.
2015-10-03Issue #25232: Fix CGIRequestHandler's splitting of URL queryMartin Panter-0/+24
Patch from Xiang Zhang.
2015-02-17document the requestline and close_connection attributes, use real booleans, ↵Benjamin Peterson-0/+39
and add tests (closes #23410) Patch by Martin Panter.
2015-02-13Issue #23418: Add missing entries to http.server.__all__.Berker Peksag-0/+14
Patch by Martin Panter.
2015-01-05Issue #22165: Skip test_undecodable_filename on OS X prior to 10.5.Ned Deily-0/+1
10.4 systems do not allow creation of files with such filenames.
2014-12-26fix behavior of trailing slash redirection when a query string is involved ↵Benjamin Peterson-0/+6
(closes #23112)
2014-10-18Issue #20155: Fix non-buildbot test failure on Windows. Patch by Claudiu Popa,Terry Jan Reedy-1/+1
revised by R. David Murray.
2014-08-17Issue #22165: Fixed test_undecodable_filename on Mac OS.Serhiy Storchaka-0/+7
2014-08-17Issue #22165: Fixed test_undecodable_filename on non-UTF-8 locales.Serhiy Storchaka-2/+3
2014-08-17Issue #22165: SimpleHTTPRequestHandler now supports undecodable file names.Serhiy Storchaka-0/+19
2014-07-12Issue #21323: Fix http.server to again handle scripts in CGI subdirectories,Ned Deily-0/+16
broken by the fix for security issue #19435. Patch by Zach Byrne.
2014-07-12Issue #21323: Fix http.server to again handle scripts in CGI subdirectories,Ned Deily-0/+16
broken by the fix for security issue #19435. Patch by Zach Byrne.
2014-07-12Issue #21323: Fix http.server to again handle scripts in CGI subdirectories,Ned Deily-0/+16
broken by the fix for security issue #19435. Patch by Zach Byrne.
2014-06-24#20155: use fake HTTP method names so windows doesn't hang the tests.R David Murray-2/+3
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-16merge 3.3Benjamin Peterson-1/+1
2014-06-16merge 3.2Benjamin Peterson-1/+1
2014-06-16expect the correct platform-dependent linesepBenjamin Peterson-1/+1
2014-06-14merge 3.3 (#21766)Benjamin Peterson-0/+5
2014-06-14merge 3.2 (#21766)Benjamin Peterson-0/+5
2014-06-14url unquote the path before checking if it refers to a CGI script (closes ↵Benjamin Peterson-0/+5
#21766)
2014-02-08Issue #20555: Use specific asserts in urllib, httplib, ftplib, cgi, wsgiref ↵Serhiy Storchaka-1/+1
tests.
2014-02-08Issue #20555: Use specific asserts in urllib, httplib, ftplib, cgi, wsgiref ↵Serhiy Storchaka-1/+1
tests.
2014-01-18merge 3.3 (#18574)Benjamin Peterson-2/+4
2014-01-18fix handling of 100-continue status code (closes #18574)Benjamin Peterson-2/+4
2013-10-30merge 3.3 (#19435)Benjamin Peterson-0/+12
2013-10-30merge 3.2 (#19435)Benjamin Peterson-0/+12
2013-10-30merge 3.1 (#19435)Benjamin Peterson-0/+12
2013-10-30use the collapsed path in the run_cgi method (closes #19435)Benjamin Peterson-0/+10
2013-09-13Fix http.server's request handling case on trailing '/'.Senthil Kumaran-0/+3
Patch contributed by Vajrasky Kok. Addresses Issue #17324
2013-09-13Fix http.server's request handling case on trailing '/'.Senthil Kumaran-0/+3
Patch contributed by Vajrasky Kok. Addresses Issue #17324
2013-03-15#1291 http.server's send_error takes an optional explain argumentSenthil Kumaran-0/+10
2013-02-04Do not raise self.skipTest().Serhiy Storchaka-2/+1
skipTest() already raises an exception.
2013-02-04Do not raise self.skipTest().Serhiy Storchaka-2/+1
skipTest() already raises an exception.
2013-02-04Do not raise self.skipTest().Serhiy Storchaka-2/+1
skipTest() already raises an exception.
2012-10-11code smell. remove pdbSenthil Kumaran-1/+0
2012-10-10Issue #16088: BaseHTTPRequestHandler's send_error method includes aSenthil Kumaran-0/+12
Content-Length header. Patch by Antoine Pitrou.
2012-09-30Speed up test_httpservers by avoiding a one-second cleanup wait after each ↵Antoine Pitrou-0/+1
test case.
2012-09-30Speed up test_httpservers by avoiding a one-second cleanup wait after each ↵Antoine Pitrou-0/+1
test case.
2012-08-05Fix CGI tests to take into account the platform's line ending (issue #13119)Antoine Pitrou-5/+7
2012-08-05Fix CGI tests to take into account the platform's line ending (issue #13119)Antoine Pitrou-5/+7
2012-04-12merge to default - Issue 10484 - Incorporate improvements to CGI module - ↵Senthil Kumaran-25/+28
Suggested by Glenn Linderman. Refactor code and tests
2012-04-123.2 - Issue 10484 - Incorporate improvements to CGI module - Suggested by ↵Senthil Kumaran-25/+28
Glenn Linderman. Refactor code and tests
2012-04-11merge - fix the incorrect changes made for PATH_INFO value - Issue10484Senthil Kumaran-1/+0
2012-04-113.2- fix the incorrect changes made for PATH_INFO value - Issue10484Senthil Kumaran-1/+0
2012-03-16closes issue10484 - Fix the http.server's cgi PATH_INFO handling problemSenthil Kumaran-0/+1
2012-03-16closes issue10484 - Fix the http.server's cgi PATH_INFO handling problemSenthil Kumaran-0/+1
2011-11-02Issue #13308: Fix test_httpservers failures when run as root.Charles-François Natali-2/+6
2011-11-02Issue #13308: Fix test_httpservers failures when run as root.Charles-François Natali-2/+6
2011-05-09Issue #3709: a flush_headers method to BaseHTTPRequestHandler which manages theSenthil Kumaran-17/+56
sending of headers to output stream and flushing the internal headers buffer. Patch contribution by Andrew Schaaf