]> granicus.if.org Git - apache/commitdiff
Set Accept-Rangs: none instead of unsetting the Accept-Range header when we
authorEric Covener <covener@apache.org>
Thu, 8 Sep 2011 13:02:47 +0000 (13:02 +0000)
committerEric Covener <covener@apache.org>
Thu, 8 Sep 2011 13:02:47 +0000 (13:02 +0000)
have a filter that doesn't like byteranges.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1166667 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/filters/mod_filter.c

diff --git a/CHANGES b/CHANGES
index a79db2f8c295cb7ef2b382e3392a3b9cabc62c42..f43a3cb725aa6fe74c06882f2a519689dca06875 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -7,6 +7,10 @@ Changes with Apache 2.3.15
      the original file, ignore the ranges and send the complete file.
      PR 51714. [Stefan Fritsch, Jim Jagielski, Ruediger Pluem, Eric Covener]
 
+  *) mod_filter: Instead of dropping the Accept-Ranges header when a filter
+     registered with AP_FILTER_PROTO_NO_BYTERANGE is present,
+     set the header value to "none". [Eric Covener, Ruediger Pluem]
+
   *) core: Allow MaxRanges none|unlimited|default and set 'Accept-Ranges: none'
      in the case Ranges are being ignored with MaxRanges none.
      [Eric Covener]
index 8dbbf8cb3c90521cbc546652d720dcf935a72367..f1abfefe13321a51541f553cded9c0c4efe2b038 100644 (file)
@@ -212,7 +212,7 @@ static int filter_lookup(ap_filter_t *f, ap_filter_rec_t *filter)
             }
 
             if (proto_flags & AP_FILTER_PROTO_NO_BYTERANGE) {
-                apr_table_unset(r->headers_out, "Accept-Ranges");
+                apr_table_setn(r->headers_out, "Accept-Ranges", "none");
             }
             else if (rctx && rctx->range) {
                 /* restore range header we saved earlier */