r2095@chromobil: stefan | 2008-02-26 17:11:21 +0100
Fix #1449: Do not add Accept-Ranges header if range-request is disabled git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2090 152afb58-edef-0310-8abb-c4023f1b3aa9svn/tags/lighttpd-1.4.19
parent
0a894c9cb3
commit
87145864db
|
@ -450,7 +450,9 @@ URIHANDLER_FUNC(mod_staticfile_subrequest) {
|
|||
}
|
||||
}
|
||||
|
||||
response_header_overwrite(srv, con, CONST_STR_LEN("Accept-Ranges"), CONST_STR_LEN("bytes"));
|
||||
if (con->conf.range_requests) {
|
||||
response_header_overwrite(srv, con, CONST_STR_LEN("Accept-Ranges"), CONST_STR_LEN("bytes"));
|
||||
}
|
||||
|
||||
if (allow_caching) {
|
||||
if (p->conf.etags_used && con->etag_flags != 0 && !buffer_is_empty(sce->etag)) {
|
||||
|
|
Loading…
Reference in New Issue