* Fix headers already sent for xhprof.

This commit is contained in:
Lufei
2023-05-16 09:35:36 +08:00
parent 2d12d652ba
commit 7dc3f67937
+1 -1
View File
@@ -737,7 +737,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;
}