[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] Redirection in CGI::App using mod_perl


On 27 Jul 2003, Jamie Krasnoo wrote:

> 	# this needs to be either Apache::OK or Apache::REDIRECT
> 	# depending on what the application does.
> 	return Apache::OK;

Perhaps you could examine the state of header_type after run()
returns.  If the app wanted to redirect then it would have set
header_type to 'redirect', so maybe this will work:

  return Apache::REDIRECT if $webapp->header_type eq 'redirect';
  return Apache::OK;

-sam


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.