[Web-SIG] wsgiref bug with HEAD request
joe at bitworking.org
Mon Nov 13 03:28:01 CET 2006
According to RFC 2616 the HEAD response MUST NOT
return a message-body in the response:
On 10/18/06, Sylvain Hellegouarch <sh at defuze.org> wrote:
> It seems the default server from wsgiref (from wsgiref.simple_server
> import make_server) seems not to respect Content-Length in case of HEAD
> Since no body can be returned in a response to a HEAD request, the
> content length is set to 0 by the server. In that case Content-Length is
> therefore set by the application or a middleware.
> wsgiref server disregard the existing value and sets to 0 either way.
> Seems bogus to me or am I missing something here?
> - Sylvain
> Web-SIG mailing list
> Web-SIG at python.org
> Web SIG: http://www.python.org/sigs/web-sig
> Unsubscribe: http://mail.python.org/mailman/options/web-sig/joe.gregorio%40gmail.com
Joe Gregorio http://bitworking.org
More information about the Web-SIG