setup: 200 ok only before echo
authorChristian Weiske <cweiske@cweiske.de>
Wed, 9 Apr 2014 19:00:11 +0000 (21:00 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Wed, 9 Apr 2014 19:00:11 +0000 (21:00 +0200)
www/setup.php

index d89cf18ab97edc098b175768a944ed98cfaba098..cbba4dd384bdac94895aa83ff6041015d48ac85e 100644 (file)
@@ -52,8 +52,6 @@ foreach ($adapter as $classpart) {
     }
 }
 
     }
 }
 
-header('HTTP/1.0 200 OK');
-
 $out = <<<HTM
 <?xml version="1.0" encoding="utf-8"?>
 <html>
 $out = <<<HTM
 <?xml version="1.0" encoding="utf-8"?>
 <html>
@@ -102,5 +100,7 @@ $out .= <<<HTM
  </body>
 </html>
 HTM;
  </body>
 </html>
 HTM;
+
+header('HTTP/1.0 200 OK');
 echo $out;
 ?>
 echo $out;
 ?>