On Fri, 9 Jun 2000, Drew Taylor wrote:
> Doug MacEachern wrote:
> >
> > see http_protocol.c:send_http_header():
> >
> > if (!ap_is_empty_table(r->err_headers_out))
> > r->headers_out = ap_overlay_tables(r->pool, r->err_headers_out,
> > r->headers_out);
> Basically, what the code above says is that when calling
> send_http_header(), if the headers_out table is not empty, add them to
> the outgoing headers. Am I correct? If so, what is the rational behind
> this? I thought that err_headers_out were only sent if an error occured.
> I would have made the same assumption as Geoff.
yeah, it's explained in httpd.h:
* The difference between headers_out and err_headers_out is that the
* latter are printed even on error, and persist across internal redirects
* (so the headers printed for ErrorDocument handlers will have them).
*