From: Stephen Paul Weber Date: Sun, 25 Oct 2015 18:42:37 +0000 (+0000) Subject: Add all link headers, not just the last one X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fae7bc0bc00e50c1b77025cc2d251c4db297b9f7;p=quix0rs-gnu-social.git 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. --- 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); } } }