According to RFC 2616 the HEAD response MUST NOT return a message-body in the response:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.4 -joe On 10/18/06, Sylvain Hellegouarch <[EMAIL PROTECTED]> wrote: > All, > > It seems the default server from wsgiref (from wsgiref.simple_server > import make_server) seems not to respect Content-Length in case of HEAD > request. > > 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 > [email protected] > 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 _______________________________________________ Web-SIG mailing list [email protected] Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com
