always send indieauth header
[indieauth-openid.git] / www / index.php
index de410c1af7484d92b705266a8c0f610930d54ae2..3a32eea7d9e10d7e781d77e6a9734fd26a43db4d 100644 (file)
@@ -13,6 +13,7 @@
  * @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
 ) {
@@ -131,7 +132,6 @@ function getBaseUrl()
         . $file;
 }
 
-header('IndieAuth: authorization_endpoint');
 session_start();
 $returnTo = getBaseUrl();
 $realm    = getBaseUrl();