Skip to content

Multiple Set-Cookie Headers in Symfony Response. #26

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 4 commits into from
Closed

Multiple Set-Cookie Headers in Symfony Response. #26

wants to merge 4 commits into from

Conversation

tinyroy
Copy link

@tinyroy tinyroy commented Jul 17, 2016

Fix #25

@fabpot
Copy link
Member

fabpot commented Aug 18, 2016

Can you add some tests?

@xabbuh
Copy link
Member

xabbuh commented Oct 20, 2016

ping @tinyroy :) Any news here?

@@ -64,7 +64,11 @@ public function getHeaderLine($name)

public function withHeader($name, $value)
{
throw new \BadMethodCallException('Not implemented.');
if (is_string($value) || is_array($value)) {
$this->headers[$name] = $value;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong implementation. If the value is a string, you need to wrap it in an array. Otherwise, getHeader will not return an array

nicolas-grekas added a commit that referenced this pull request Mar 11, 2019
… to a Symfony header cookie (tinyroy)

This PR was merged into the 1.2-dev branch.

Discussion
----------

removed 'Set-Cookie' from header when it is already converted to a Symfony header cookie

Fix #25
Fix #26

Commits
-------

dd1111e removed 'Set-Cookie' from header when it is already converted to a Symfony header cookie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants