RequestDataCollector - small fix

This commit is contained in:
Дмитрий Пацура 2015-02-09 11:38:13 +08:00 committed by Fabien Potencier
parent bfa181bd65
commit 7ed48db94c
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ class RequestDataCollector extends DataCollector implements EventSubscriberInter
$this->data = array(
'format' => $request->getRequestFormat(),
'content' => $content,
'content_type' => $response->headers->get('Content-Type') ? $response->headers->get('Content-Type') : 'text/html',
'content_type' => $response->headers->get('Content-Type', 'text/html'),
'status_text' => isset(Response::$statusTexts[$statusCode]) ? Response::$statusTexts[$statusCode] : '',
'status_code' => $statusCode,
'request_query' => $request->query->all(),