perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Wesemann <f.wesem...@fotofinder.net>
Subject Can't set $epreq->apache_req->status on Apache 2.2
Date Fri, 11 Oct 2013 19:58:58 GMT
Hi,
I do have .ep files, that deliver binary content from a database to 
browsers (generated images which are requested via <img 
src="showImage.ep?id=99">).

If an image isn't in the DB I am setting

$epreq->apache_req->status_line("404 Not found");
$http_headers_out{'Content-Type'} = "text/plain; charset=ISO-8859-1";
print OUT "The image can't be found";
exit;

And the browser get's an 404 and shows a broken image (or nothing nowadays).
This works like a charme in my development environment under Apache 2.0.55.

In the production environment under Apache 2.2.3 the status line isn't 
set, so the browser gets an "200 OK" status.

In both environments EMBPERL_OPTIONS is 270338.
Embperl Version is 2.3.0

Is this an known issue?
Did the Apache API change?
Anything else that might be different?
Any thoughts welcome.

-- 
mit freundlichem Gruß,

Frank Wesemann
Fotofinder GmbH         USt-IdNr. DE812854514
Software Entwicklung    Web: http://www.fotofinder.com/
Potsdamer Str. 96       Tel: +49 30 25 79 28 90
10785 Berlin            Fax: +49 30 25 79 28 999

Sitz: Berlin
Amtsgericht Berlin Charlottenburg (HRB 73099)
Geschäftsführer: Ali Paczensky




Mime
View raw message