8000 Fixed Request::__toString ignoring cookies by Toflar · Pull Request #25799 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Fixed Request::__toString ignoring cookies #25799

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
CS
  • Loading branch information
Toflar committed Jan 15, 2018
commit bf73cde725c524b873aa94eebeb3e0b1e240f764
2 changes: 1 addition & 1 deletion src/Symfony/Component/HttpFoundation/Request.php
5E43
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ public function __toString()
$cookies[] = $k.'='.$v;
}

if (0 !== count($cookies)) {
if (!empty($cookies)) {
$cookieHeader = 'Cookie: '.implode('; ', $cookies)."\r\n";
}

Expand Down
0