On Sun, 20 Aug 2000, Alex Menendez wrote:
> unfortunately, I am not entirely sure what a cgi is going to output all the
> time. The cgi might try to do a redirect using the Location field. Therefore,
> I don't think I can simply send_http_headers as type text/html...
right,
> > my $lookup = $r->lookup_uri( $uri );
> > $r->send_http_header( 'text/html' );
so just change that line to:
$lookup->send_http_header;
and you'll get the content-type and headers generated by the subrequest.
if there's a bug, it's in the book, subrequest->run() is not supposed to
include headers in the output.