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

Re: [ic] Updated Interchange::Link


Grant <suppressed> 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
 _/ _/    _/          _/ _/     _/    _/  _/_/    suppressed
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/
_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


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