no use for double quotes here
This commit is contained in:
parent
f998ed331a
commit
2cc0515161
|
@ -4,7 +4,7 @@ $hostMetaHeader = array(
|
||||||
'Content-Type' => 'application/xrd+json'
|
'Content-Type' => 'application/xrd+json'
|
||||||
);
|
);
|
||||||
$serverName = $_SERVER['SERVER_NAME'];
|
$serverName = $_SERVER['SERVER_NAME'];
|
||||||
$hostMetaContents = "{\"links\":[{\"rel\":\"lrdd\",\"template\":\"http'.(isset($_SERVER['HTTPS'])?'s':'').'://'.$serverName.'/public.php?service=webfinger&q={uri}\"}]}";
|
$hostMetaContents = '{"links":[{"rel":"lrdd","template":"http'.(isset($_SERVER['HTTPS'])?'s':'').'://'.$serverName.'/public.php?service=webfinger&q={uri}"}]}';
|
||||||
foreach($hostMetaHeader as $header => $value) {
|
foreach($hostMetaHeader as $header => $value) {
|
||||||
header($header . ": " . $value);
|
header($header . ": " . $value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue