Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d73dd8b

Browse filesBrowse files
committed
minor #21001 [HttpKernel] Continuation of #20569 (ro0NL)
This PR was merged into the 3.3-dev branch. Discussion ---------- [HttpKernel] Continuation of #20569 | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #20567 (comment) | License | MIT | Doc PR | symfony/symfony-docs#... <!--highly recommended for new features--> Forgotten in #20569 and makes #20567 truly a feature only. Before ![image](https://cloud.githubusercontent.com/assets/1047696/21361738/971e4f8e-c6e5-11e6-8b08-8a5f8ab4f1f0.png) After ![image](https://cloud.githubusercontent.com/assets/1047696/21361752/a6dc5380-c6e5-11e6-9f18-3bc3d7db94be.png) Commits ------- e1616b3 [HttpKernel] Continuation of #20569
2 parents 69264ff + e1616b3 commit d73dd8b
Copy full SHA for d73dd8b

File tree

1 file changed

+1
-6
lines changed
Filter options

1 file changed

+1
-6
lines changed

‎src/Symfony/Component/HttpKernel/DataCollector/RequestDataCollector.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/DataCollector/RequestDataCollector.php
+1-6Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@ public function __construct()
3939
*/
4040
public function collect(Request $request, Response $response, \Exception $exception = null)
4141
{
42-
$responseHeaders = $response->headers->all();
43-
foreach ($response->headers->getCookies() as $cookie) {
44-
$responseHeaders['set-cookie'][] = (string) $cookie;
45-
}
46-
4742
// attributes are serialized and as they can be anything, they need to be converted to strings.
4843
$attributes = array();
4944
$route = '';
@@ -95,7 +90,7 @@ public function collect(Request $request, Response $response, \Exception $except
9590
'request_cookies' => $request->cookies->all(),
9691
'request_attributes' => $attributes,
9792
'route' => $route,
98-
'response_headers' => $responseHeaders,
93+
'response_headers' => $response->headers->all(),
9994
'session_metadata' => $sessionMetadata,
10095
'session_attributes' => $sessionAttributes,
10196
'flashes' => $flashes,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.