Changeset 1382

Show
Ignore:
Timestamp:
10/07/2006 05:17:54 PM (2 years ago)
Author:
jan
Message:

don't force a Content-Length header in HEAD requests (#119)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/lighttpd-1.4.x/src/connections.c

    r1381 r1382  
    523523 
    524524                if ((!(con->parsed_response & HTTP_CONTENT_LENGTH)) && 
    525                     (con->response.transfer_encoding & HTTP_TRANSFER_ENCODING_CHUNKED) == 0) { 
     525                    (con->response.transfer_encoding & HTTP_TRANSFER_ENCODING_CHUNKED) == 0 && 
     526                    con->request.http_method != HTTP_METHOD_HEAD) { /* don't force a Content-Length if we had a HEAD request */ 
    526527                        buffer_copy_off_t(srv->tmp_buf, chunkqueue_length(con->write_queue)); 
    527528