Bug #119
closedContent-Length set to 0 on HEAD requests
Description
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.
-- dgl
Files
Updated by jan over 19 years ago
- Status changed from New to Fixed
- Resolution set to worksforme
Can't reproduce in 1.3.16.
HEAD / HTTP/1.0
HTTP/1.0 200 OK
Content-Length: 4357
...
Updated by bdash over 18 years ago
- Status changed from Fixed to Need Feedback
- Resolution deleted (
worksforme)
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.
Updated by Anonymous about 18 years ago
Is there any plan to do anything with this patch? What good is it if people submit patches which are then ignored?
Updated by jan about 18 years ago
- Status changed from Need Feedback to Fixed
- Resolution set to fixed
thanks for bringing this topic back to the top. fixed in r1382.
Also available in: Atom