[ic] Updated Interchange::Link
Grant
emailgrant at gmail.com
Sat Dec 9 19:26:06 EST 2006
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.
- Grant
P.S. This took me a hideously long time.
More information about the interchange-users
mailing list