]> granicus.if.org Git - python/commit
Per Cederqvist writes:
authorGuido van Rossum <guido@python.org>
Tue, 30 Mar 1999 20:17:31 +0000 (20:17 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 30 Mar 1999 20:17:31 +0000 (20:17 +0000)
commit60e7330fee3e34732ab55cd6bb1212e138c11f7f
treecd48b512d8f1e300e32418d43eb9813220038eae
parent275e83489efabfb26bc09f193e379e3bc690c3b6
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.
Lib/BaseHTTPServer.py