https://bz.apache.org/bugzilla/show_bug.cgi?id=61860

--- Comment #1 from Luca Toscano <[email protected]> ---
Hi,

I can reproduce the issue easily, and the following quick hack seems working:

Index: modules/http/byterange_filter.c
===================================================================
--- modules/http/byterange_filter.c     (revision 1828144)
+++ modules/http/byterange_filter.c     (working copy)
@@ -389,6 +389,7 @@
     conn_rec *c = f->r->connection;
     ap_remove_output_filter(f);
     f->r->status = HTTP_OK;
+    apr_table_clear(f->r->err_headers_out);
     e = ap_bucket_error_create(HTTP_RANGE_NOT_SATISFIABLE, NULL,
                                f->r->pool, c->bucket_alloc);
     APR_BRIGADE_INSERT_TAIL(tmpbb, e);


My understanding is that the 'always' bit in 'Header' forces the header value
to be placed in r->err_headers_out too, so when the 416 is forced the headers
are duplicated (because both r->headers_out and r->headers_out_err seems to be
added to the response). The above hack explicitly clears all the headers that
are not supposed to be maintained even in error conditions, but a more generic
approach might be needed.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to