[Web-SIG] wsgiref bug with HEAD request
Sylvain Hellegouarch
sh at defuze.org
Wed Oct 18 22:16:01 CEST 2006
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
More information about the Web-SIG
mailing list