Skip to content

Commit 92c50bc

Browse files
ovrfabpot
authored andcommitted
RequestDataCollector - small fix
1 parent 636ea13 commit 92c50bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DataCollector/RequestDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function collect(Request $request, Response $response, \Exception $except
8888
$this->data = array(
8989
'format' => $request->getRequestFormat(),
9090
'content' => $content,
91-
'content_type' => $response->headers->get('Content-Type') ? $response->headers->get('Content-Type') : 'text/html',
91+
'content_type' => $response->headers->get('Content-Type', 'text/html'),
9292
'status_text' => isset(Response::$statusTexts[$statusCode]) ? Response::$statusTexts[$statusCode] : '',
9393
'status_code' => $statusCode,
9494
'request_query' => $request->query->all(),

0 commit comments

Comments
 (0)