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 d89cf18..cbba4dd 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>
@@ -102,5 +100,7 @@ $out .= <<<HTM
  </body>
 </html>
 HTM;
+
+header('HTTP/1.0 200 OK');
 echo $out;
 ?>