]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add all link headers, not just the last one
authorStephen Paul Weber <singpolyma@singpolyma.net>
Sun, 25 Oct 2015 18:42:37 +0000 (18:42 +0000)
committerStephen Paul Weber <singpolyma@singpolyma.net>
Sun, 25 Oct 2015 18:42:37 +0000 (18:42 +0000)
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

index c2a9c69d0c9342adb0922967455de308397ca3a1..ce8c847aa799c2c744490f3b0e40779810a54f62 100644 (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);
             }
         }
     }