fixed Server Timing API (#1061)
* fixed Server Timing API * escaped double quote from label
This commit is contained in:
parent
bbf7f2521a
commit
db074ffa7d
|
@ -1084,7 +1084,7 @@ class LaravelDebugbar extends DebugBar
|
|||
|
||||
$headers = [];
|
||||
foreach ($collector->collect()['measures'] as $k => $m) {
|
||||
$headers[] = sprintf('%d=%F; "%s"', $k, $m['duration'] * 1000, str_replace('"', "'", $m['label']));
|
||||
$headers[] = sprintf('app;desc="%s";dur=%F', str_replace('"', "'", $m['label']), $m['duration'] * 1000);
|
||||
}
|
||||
|
||||
$response->headers->set('Server-Timing', $headers, false);
|
||||
|
|
Loading…
Reference in New Issue