oops! was hardcoding my test domain inadvertently

This commit is contained in:
Michiel de Jong 2012-05-17 20:59:55 +02:00
parent 7a7c301d7d
commit 3e454d3459
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ if(isset($_SERVER['HTTPS'])) {
$lrddTmpl .= '://' . $serverName . $webRoot . '/public.php?service=webfinger&q={uri}';
$hostMetaPath = $docRoot . '/.well-known/host-meta';
$hostMetaDir = $docRoot . '/.well-known';
$hostMetaContents = "{\"links\":[{\"rel\":\"lrdd\",\"template\":\"http://mich.oc/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) {
header($header . ": " . $value);
}