39 Commits

Author SHA1 Message Date
Martin Panter
ad6a99c011 Correct print() calls to print a blank line in various test cases 2016-09-10 10:38:22 +00:00
Martin Panter
6af1c49bb4 Issue #25738: Don’t send message body for 205 Reset Content
Patch by Susumu Koshiba.
2016-06-08 07:16:14 +00:00
Martin Panter
0cf2cf2b7d Issue #26657: Fix SimpleHTTPServer Windows directory traversal vulnerability
Based on patch by Philipp Hagemeister.  This fixes a regression caused by
revision 6b314f5c9404.
2016-04-18 03:45:18 +00:00
Martin Panter
ec3c245c64 Issue #26609: Fix up Python 2 port 2016-04-09 13:45:52 +00:00
Martin Panter
af58c857a8 Issue #26609: Fix HTTP server tests to request an absolute URL path 2016-04-09 04:56:10 +00:00
Martin Panter
74c76c8f06 Issue #24657: Prevent CGIRequestHandler from collapsing the URL query
Initial patch from Xiang Zhang. Also fix out-of-date _url_collapse_path() doc
string.
2015-10-03 05:55:46 +00:00
Martin Panter
cff22eb2bf Issue #25232: Fix CGIRequestHandler's splitting of URL query
Patch from Xiang Zhang.
2015-10-03 05:38:07 +00:00
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