Changeset 2090

Show
Ignore:
Timestamp:
02/26/2008 04:21:32 PM (3 months ago)
Author:
stbuehler
Message:

r2095@chromobil: stefan | 2008-02-26 17:11:21 +0100
Fix #1449: Do not add Accept-Ranges header if range-request is disabled

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/lighttpd-1.4.x/src/mod_staticfile.c

    r2000 r2090  
    451451        } 
    452452 
    453         response_header_overwrite(srv, con, CONST_STR_LEN("Accept-Ranges"), CONST_STR_LEN("bytes")); 
     453        if (con->conf.range_requests) { 
     454                response_header_overwrite(srv, con, CONST_STR_LEN("Accept-Ranges"), CONST_STR_LEN("bytes")); 
     455        } 
    454456 
    455457        if (allow_caching) {