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.
This commit is contained in:
Stephen Paul Weber 2015-10-25 18:42:37 +00:00
parent 0ba53edd96
commit fae7bc0bc0
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}
}