Skip to content

Commit ce95fa8

Browse files
committed
minor symfony#13629 RequestDataCollector - small fix (ovr)
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes symfony#13629). Discussion ---------- RequestDataCollector - small fix | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | License | MIT Commits ------- 7ed48db RequestDataCollector - small fix
2 parents bfa181b + 7ed48db commit ce95fa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpKernel/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)