Commit Graph

42 Commits

Author SHA1 Message Date
Senthil Kumaran
ee5546c316 Fix Issue7172 - BaseHTTPServer.BaseHTTPRequestHandler.responses[405] - changing
server to resource in the 405 response msg.
2010-02-22 10:55:08 +00:00
Kristján Valur Jónsson
e007860b8b http://bugs.python.org/issue6267
Cumulative patch to http and xmlrpc
2009-06-28 21:04:17 +00:00
Brett Cannon
1eaf0742d8 Move test.test_support.catch_warning() to the warnings module, rename it
catch_warnings(), and clean up the API.

While expanding the test suite, a bug was found where a warning about the
'line' argument to showwarning() was not letting functions with '*args' go
without a warning.

Closes issue 3602.
Code review by Benjamin Peterson.
2008-09-02 01:25:16 +00:00
Brett Cannon
abe423ed2c Silence the DeprecationWarning raised by importing mimetools in BaseHTTPServer.
This does have an unfortunate side-effect of silencing the warning for all
subsequent code that imports mimetools as well since the warning is only
executed upon the first import of mimetools.
2008-08-16 21:47:07 +00:00
Georg Brandl
e152a77d96 socketserver renaming reversal part 3: move the module into the right
place and fix all references to it.  Closes #2926.
2008-05-24 18:31:28 +00:00
Georg Brandl
f899dfa1d1 GHOP #134, #171, #137: unit tests for the three HTTPServer modules. 2008-05-18 09:12:20 +00:00
Alexandre Vassalotti
d192c925ac Updated all import statements to use the new socketserver module name.
Renamed socketserver module in its own documentation.
Renamed documentation references.
2008-05-12 02:11:22 +00:00
Georg Brandl
1647923bbf #1492: allow overriding BaseHTTPServer's content type for error messages. 2008-02-23 15:02:28 +00:00
Guido van Rossum
833e9611b3 Fix the signature of log_error(). (A subclass that did the right thing
was getting complaints from pychecker.)
2007-01-10 23:12:56 +00:00
Andrew M. Kuchling
ec73cd4b1a Typo fix 2006-03-07 16:16:07 +00:00
Georg Brandl
6aab16e9f6 Move "httpresponses" dict from urllib2 to httplib where it belongs. 2006-02-17 19:17:25 +00:00
Georg Brandl
5d076961e2 Patch #1417555: SimpleHTTPServer now returns Last-Modified headers. 2006-02-17 13:34:16 +00:00
Georg Brandl
a2aa1ac42b bug [ 1100201 ] Cross-site scripting on BaseHTTPServer 2005-06-26 21:33:14 +00:00
Walter Dörwald
70a6b49821 Replace backticks with repr() or "%r"
From SF patch #852334.
2004-02-12 17:35:32 +00:00
Raymond Hettinger
cffb9dee67 SF patch #747364: BaseHTTPServer doesn't need StringIO intermediary
(Contributed by Andrew Dalke.)
2003-08-09 05:01:41 +00:00
Raymond Hettinger
bf68c78a6f Fix SF bug #747348 docstring mistake in BaseHTTPServer.py. \n\nBackport Candidate 2003-06-02 14:25:43 +00:00
Martin v. Löwis
3c120debef Patch #744041: Use only first two elements of address to support IPv6. 2003-05-31 07:55:43 +00:00
Guido van Rossum
68468eba63 Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
Andrew M. Kuchling
2de97d398d [Bug #676292] BaseHTTPServer incorrectly parses protocol; fix by Andrew Dalke
* Treat major, minor numbers of HTTP version as separate integers
   * Fix errors if version string is "HTTP/1.2.3" or even simply "BLAH".
   * send_error() checks if 'self.command' is a
     HEAD.  However, if there's an error parsing the first line of the
     HTTP request the self.command wasn't set yet; force
     self.command to be initialized to None.
2003-02-03 19:11:18 +00:00
Andrew M. Kuchling
8ca202e395 Bug #676273: Rewrite paragraph in module docstring 2003-02-03 15:21:15 +00:00
Raymond Hettinger
c0418609eb Use is None rather than general boolean 2002-05-31 23:03:33 +00:00
Tim Peters
863ac44b74 Whitespace normalization. 2002-04-16 01:38:40 +00:00
Tim Peters
bc0e910826 Convert a pile of obvious "yes/no" functions to return bool. 2002-04-04 22:55:58 +00:00
Martin v. Löwis
587c98c863 Patch #430706: Persistent connections in BaseHTTPServer. 2002-03-17 18:37:22 +00:00
Skip Montanaro
31fd86c4f1 add Content-Type header to error responses
this closes patch 502080
2002-03-08 02:36:18 +00:00