diff options
author | Stefan Bühler <stbuehler@web.de> | 2008-02-26 16:21:32 +0000 |
---|---|---|
committer | Stefan Bühler <stbuehler@web.de> | 2008-02-26 16:21:32 +0000 |
commit | 87145864db311d4655c4a70537056daaa313b0f2 (patch) | |
tree | fcc4096ca1dd20f22079b7cae3d9fd1693e8a6de /src/mod_staticfile.c | |
parent | 0a894c9cb379e5a86f7f7f3a4c15c0d9b1949250 (diff) | |
download | lighttpd-git-87145864db311d4655c4a70537056daaa313b0f2.tar.gz |
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-c4023f1b3aa9
Diffstat (limited to 'src/mod_staticfile.c')
-rw-r--r-- | src/mod_staticfile.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mod_staticfile.c b/src/mod_staticfile.c index acb6884a..e0cbe086 100644 --- a/src/mod_staticfile.c +++ b/src/mod_staticfile.c @@ -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)) { |