fixed Server Timing API (#1061)

* fixed Server Timing API

* escaped double quote from label
This commit is contained in:
lifecodeof 2020-07-19 14:20:42 +03:00 committed by GitHub
parent bbf7f2521a
commit db074ffa7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);