* Fix headers already sent for xhprof.

This commit is contained in:
Lufei
2023-05-16 09:36:05 +08:00
parent cb1765a5e8
commit c0cb4c4cdc
+1 -1
View File
@@ -801,7 +801,7 @@ class baseRouter
$xhprofRuns = new \XHProfRuns_Default($outputDir);
$type = "{$this->moduleName}_{$this->methodName}";
$runID = $xhprofRuns->save_run($log, $type);
header("Xhprof-RunID: {$runID}");
if(!headers_sent()) header("Xhprof-RunID: {$runID}");
return true;
}