Hi List,


we got a strange problem on Apache/2.0.52 (Unix) mod_perl/1.99_18 Perl/v5.8.5.


$r->content_type('image/jpeg');
$r->sendfile($docname);

returns an empty image (length: 0).

The jpg image $docname exists and is readable for apache.

Also error handling does not work:

If we change $document to a _not_ existing file, then

$r->sendfile($docname) || return $err->handle( ... )
will NOT return $err->handle()

In this case also
my $rc=$r->sendfile($docname);
unless ($rc==APR::SUCCESS) {
  return $err->handle ( ... );
}

will not return $err->handle().


Any ideas?


Thanks in Advance! Regards, Michael Heidel


-- Michael Heidel EUC Online Service GmbH HRB Köln 32038 Geschäftsführer Taubengasse 9 Tel. +49 221 58007-20 <[EMAIL PROTECTED]> D-50676 Köln Fax +49 221 58007-28 Tel.-Durchwahl: -22 Public PgP Key: http://www.euc.de/pgp/mheidel.asc

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to