setup: 200 ok only before echo
[phancap.git] / 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>
@@ -102,5 +100,7 @@ $out .= <<<HTM
  </body>
 </html>
 HTM;
+
+header('HTTP/1.0 200 OK');
 echo $out;
 ?>