-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpFoundation] Add support for sending raw cookies in the response #18105
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
Conversation
jakzal
commented
Mar 11, 2016
Q | A |
---|---|
Branch | master |
Bug fix? | no |
New feature? | yes |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | #13646 |
License | MIT |
Doc PR | symfony/symfony-docs#6436 |
@@ -151,4 +151,13 @@ public function testToString() | |||
$cookie = new Cookie('foo', 'bar', 0, '/', ''); | |||
$this->assertEquals('foo=bar; path=/; httponly', $cookie->__toString()); | |||
} | |||
|
|||
public function testRawCookie() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also add a test which creates a raw cookie for a request and then check if its contents are really not encoded?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know the way to capture headers in a test. Do you have an idea how to do it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say you can't. We'd need a functional test.
👍 |
👍 |
Thank you @jakzal. |
…n the response (jakzal) This PR was merged into the 3.1-dev branch. Discussion ---------- [HttpFoundation] Add support for sending raw cookies in the response | Q | A | ------------- | --- | Branch | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #13646 | License | MIT | Doc PR | TODO Commits ------- 43760a6 [HttpFoundation] Add support for sending raw cookies in the response
Can this be merged to lower versions? 2.8 |