From 23255257134b1abd662503e5ca63b17beeac39ed Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 11 Mar 2008 14:00:30 +0100 Subject: Let meta.openid set X-XRDS-Location header Adds an optional xrds-location parameter to the openid meta handler, which allows for XRDS delegation. A good document on XRDS is http://www.windley.com/archives/2007/05/using_xrds.shtml Signed-off-by: martin f. krafft --- IkiWiki/Plugin/meta.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'IkiWiki/Plugin/meta.pm') diff --git a/IkiWiki/Plugin/meta.pm b/IkiWiki/Plugin/meta.pm index 2df5a727c..b98864722 100644 --- a/IkiWiki/Plugin/meta.pm +++ b/IkiWiki/Plugin/meta.pm @@ -145,6 +145,10 @@ sub preprocess (@) { #{{{ push @{$metaheaders{$page}}, ''; } + if (exists $params{xrds-location} && safeurl($params{xrds-location})) { + push @{$metaheaders{$page}}, ''; + } } elsif ($key eq 'redir') { return "" if $page ne $destpage; -- cgit v1.2.3