On Thu, 27 Jul 2000, Ken Fox wrote:

> Here's a patch that I sent to Doug. Not sure if I would
> accept something from a guy who *clearly* can't read a
> simple INSTALL file... ;) Here's hoping anyway.

if you need to test if the headers have been sent, the best way to do that
is:

if ($r->headers_out->get('Content-type')) {
    ...
}

since the only code that should ever add Content-type to the headers_out
table is ap_send_http_header().  thanks for the patch, but
$r->sent_header() is undocumented for a reason, it is part of an ugly hack
that should not exist, and will be gone in 2.0.  if the headers_out test
doesn't help, we'll try to figure something else out.

Reply via email to