always send indieauth header
authorChristian Weiske <cweiske@cweiske.de>
Mon, 15 Jun 2015 19:23:51 +0000 (21:23 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Mon, 15 Jun 2015 19:23:51 +0000 (21:23 +0200)
www/index.php

index de410c1af7484d92b705266a8c0f610930d54ae2..3a32eea7d9e10d7e781d77e6a9734fd26a43db4d 100644 (file)
@@ -13,6 +13,7 @@
  * @link    http://indiewebcamp.com/auth-brainstorming
  * @link    https://indieauth.com/developers
  */
  * @link    http://indiewebcamp.com/auth-brainstorming
  * @link    https://indieauth.com/developers
  */
+header('IndieAuth: authorization_endpoint');
 if (($_SERVER['REQUEST_METHOD'] == 'GET' || $_SERVER['REQUEST_METHOD'] == 'HEAD')
     && count($_GET) == 0
 ) {
 if (($_SERVER['REQUEST_METHOD'] == 'GET' || $_SERVER['REQUEST_METHOD'] == 'HEAD')
     && count($_GET) == 0
 ) {
@@ -131,7 +132,6 @@ function getBaseUrl()
         . $file;
 }
 
         . $file;
 }
 
-header('IndieAuth: authorization_endpoint');
 session_start();
 $returnTo = getBaseUrl();
 $realm    = getBaseUrl();
 session_start();
 $returnTo = getBaseUrl();
 $realm    = getBaseUrl();