[New-bugs-announce] [issue7172] BaseHTTPServer.BaseHTTPRequestHandler.responses[405] has a small mistake
Andrew Dalke
report at bugs.python.org
Tue Oct 20 01:40:17 CEST 2009
New submission from Andrew Dalke <dalke at dalkescientific.com>:
BaseHTTPServer.BaseHTTPRequestHandler.responses contains a mapping from
HTTP status codes to the 2-ple (shortmessage, longmessage), based on RFC
2616.
The 2-ple for 405 is ('Method Not Allowed','Specified method is invalid
for this server.'),
RFC 405 says "An origin server SHOULD return the status code 405 (Method
Not Allowed) if the method is known by the origin server but not allowed
for the requested resource.
I think the message should be "Specified method is invalid for this
resource". That is, change "server" to "resource".
----------
components: Library (Lib)
messages: 94262
nosy: dalke
severity: normal
status: open
title: BaseHTTPServer.BaseHTTPRequestHandler.responses[405] has a small mistake
type: feature request
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7172>
_______________________________________
More information about the New-bugs-announce
mailing list