Commit Graph

33 Commits

Author SHA1 Message Date
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
Martin v. Löwis 1669669f4c Remove unused imports from previous checkin. 2001-07-25 06:12:16 +00:00
Martin v. Löwis a43c2f845e Patch #401196: Use getaddrinfo and AF_INET6 in TCP servers and clients. 2001-07-24 20:34:08 +00:00
Eric S. Raymond 5ff63d6780 Correction to test main. 2001-02-09 05:38:46 +00:00
Eric S. Raymond b49f4a4b15 String method conversion. 2001-02-09 05:07:04 +00:00
Skip Montanaro e99d5ea25b added __all__ lists to a number of Python modules
added test script and expected output file as well
this closes patch 103297.
__all__ attributes will be added to other modules without first submitting
a patch, just adding the necessary line to the test script to verify
more-or-less correct implementation.
2001-01-20 19:54:20 +00:00
Tim Peters 11cf605f84 Whitespace normalization. 2001-01-14 21:54:20 +00:00
Peter Schneider-Kamp 2d2785aad1 updated occurences of fqdn algorithm (closes patch #101197) 2000-08-16 20:30:21 +00:00
Guido van Rossum 18865de7bd Set HTTPServer class variable allow_reuse_address to 1, so restarting
the server after it died doesn't require a wait period.
2000-05-09 14:54:13 +00:00
Guido van Rossum d65b53923e Fix by Moshe Zadka (cleaned up and documented by GvR) to break out the
request handling into separate parse_request() and handle_request()
methods.
1999-10-26 13:01:36 +00:00
Guido van Rossum ba895d892d Typo: the method called is do_SPAM, not handle_SPAM. 1999-09-15 15:28:25 +00:00
Guido van Rossum 145a5f73f0 Don't just die if gethostbyaddr() fails -- as it can when DNS is
unreachable -- but fall back to using whatever hostname we have.
1999-06-09 15:05:47 +00:00
Guido van Rossum e6e8818c03 No need to import rfc822. (Andrew Dalke & kjpylint) 1999-05-03 18:00:20 +00:00
Guido van Rossum 60e7330fee Per Cederqvist writes:
If you send something like "PUT / HTTP/1.0" to something derived from
BaseHTTPServer that doesn't define do_PUT, you will get a response
that begins like this:

	HTTP/1.0 501 Unsupported method ('do_PUT')
	Server: SimpleHTTP/0.3 Python/1.5
	Date: Tue, 30 Mar 1999 18:53:53 GMT

The server should complain about 'PUT' instead of 'do_PUT'.  This
patch should fix the problem.
1999-03-30 20:17:31 +00:00
Guido van Rossum 45e2fbc2e7 Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
Guido van Rossum efa683726f Treat all HTTP/1.* versions the same. 1997-08-12 14:46:13 +00:00
Guido van Rossum f69da220bf fix several bogus var refs in error reporting 1996-02-12 23:58:38 +00:00
Guido van Rossum e7e578ffe0 Initial revision 1995-08-04 04:00:20 +00:00