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

[ic] Updated Interchange::Link


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.
_______________________________________________
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.