From fae7bc0bc00e50c1b77025cc2d251c4db297b9f7 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Sun, 25 Oct 2015 18:42:37 +0000 Subject: [PATCH] Add all link headers, not just the last one Given the way Link headers work, it does not make any sense to just replace all other ones. Especially when we ourselves are adding in a loop. --- plugins/WebFinger/WebFingerPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/WebFinger/WebFingerPlugin.php b/plugins/WebFinger/WebFingerPlugin.php index c2a9c69d0c..ce8c847aa7 100644 --- a/plugins/WebFinger/WebFingerPlugin.php +++ b/plugins/WebFinger/WebFingerPlugin.php @@ -148,7 +148,7 @@ class WebFingerPlugin extends Plugin $url = common_local_url('webfinger') . '?resource='.$acct; foreach (array(Discovery::JRD_MIMETYPE, Discovery::XRD_MIMETYPE) as $type) { - header('Link: <'.$url.'>; rel="'. Discovery::LRDD_REL.'"; type="'.$type.'"'); + header('Link: <'.$url.'>; rel="'. Discovery::LRDD_REL.'"; type="'.$type.'"', false); } } }