Skip to content

Commit

Permalink
Fix Server-Timing headers (barryvdh#691)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyrpex authored and barryvdh committed Aug 28, 2017
1 parent 70c2950 commit 5b321c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LaravelDebugbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ protected function addServerTimingHeaders(Response $response)

$headers = [];
foreach ($collector->collect()['measures'] as $k => $m) {
$headers[] = sprintf('%d=%F; "%s"', $k, $m['duration'], str_replace('"', "'", $m['label']));
$headers[] = sprintf('%d=%F; "%s"', $k, $m['duration'] * 1000, str_replace('"', "'", $m['label']));
}

$response->headers->set('Server-Timing', $headers, false);
Expand Down

0 comments on commit 5b321c0

Please sign in to comment.