1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 90_accept_ranges_fix.dpatch by <sh@sourcecode.de>
4
## All lines beginning with `## DP:' are a description of the patch.
8
diff -urNad lighttpd-1.4.18~/src/mod_staticfile.c lighttpd-1.4.18/src/mod_staticfile.c
9
--- lighttpd-1.4.18~/src/mod_staticfile.c 2007-08-13 13:15:22.000000000 +0200
10
+++ lighttpd-1.4.18/src/mod_staticfile.c 2008-03-03 17:35:07.417512084 +0100
15
- response_header_overwrite(srv, con, CONST_STR_LEN("Accept-Ranges"), CONST_STR_LEN("bytes"));
16
+ if (con->conf.range_requests) {
17
+ response_header_overwrite(srv, con, CONST_STR_LEN("Accept-Ranges"), CONST_STR_LEN("bytes"));
21
if (p->conf.etags_used && con->etag_flags != 0 && !buffer_is_empty(sce->etag)) {