[ic] Updated Interchange::Link
Kevin Walsh
kevin at cursor.biz
Sat Dec 9 20:02:21 EST 2006
Grant <emailgrant at gmail.com> wrote:
> If you're using Interchange::Link and you'd like:
>
> [bounce href="http://www.domain.com" status="301"]
>
> to return 301 instead of 302, make the following changes to your Link.pm:
>
> - use Apache2::Const;
> + use Apache2::Const -compile => qw(DECLINED OK NOT_FOUND FORBIDDEN
> REDIRECT HTTP_MOVED_PERMANENTLY);
>
> close (SOCK) or die "close: $!\n";
> + return Apache2::Const::HTTP_MOVED_PERMANENTLY if $set_status eq '301';
> return Apache2::Const::REDIRECT;
>
> That's one removed line and two added. It would be good if someone
> checked this into CVS.
>
No sooner said than done. Thanks, Grant.
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin at cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/
More information about the interchange-users
mailing list