Content-Length set to 0 on HEAD requests
Content-Length: 0 is sent on HEAD requests when it should be the length of the body that will be sent on a GET request.
Updated by bdash over 16 years ago
- Status changed from Fixed to Need Feedback
- Resolution deleted (
This occurs when a script responds to a HEAD request by returning no data but not setting a Content-Length header. Lighttpd inserts the Content-Length header based on the data received. In my opinion it would make more sense to omit the Content-Length header in the zero-length case as if the script intended a zero-byte Content-Length it would have specified that in the header.
Also available in: Atom