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
Web-SIG@python.org
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe: 
http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com

Reply via email to