~ubuntu-branches/ubuntu/hardy/lighttpd/hardy

« back to all changes in this revision

Viewing changes to debian/patches/90_accept_ranges_fix.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Stephan Hermann
  • Date: 2008-03-03 17:38:33 UTC
  • Revision ID: james.westby@ubuntu.com-20080303173833-rw25cm6x5a59bupb
Tags: 1.4.18-1ubuntu4
* debian/patches/90_accept_ranges_fix.dpatch:
  - Fixes a problem serving PDF files or other files who are in need of no
    Accept-Ranges header (http://trac.lighttpd.net/trac/ticket/541)
    (Patch: http://trac.lighttpd.net/trac/changeset/2090)
* debian/index.html:
  - replaced all occurances of debian with ubuntu (LP: #115565)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh /usr/share/dpatch/dpatch-run
 
2
## 90_accept_ranges_fix.dpatch by  <sh@sourcecode.de>
 
3
##
 
4
## All lines beginning with `## DP:' are a description of the patch.
 
5
## DP: No description.
 
6
 
 
7
@DPATCH@
 
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
 
11
@@ -450,7 +450,9 @@
 
12
                }
 
13
        }
 
14
 
 
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")); 
 
18
+       } 
 
19
 
 
20
        if (allow_caching) {
 
21
                if (p->conf.etags_used && con->etag_flags != 0 && !buffer_is_empty(sce->etag)) {