Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[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

Merged
merged 1 commit into from
Mar 15, 2016

Conversation

jakzal
Copy link
Contributor

@jakzal 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()
Copy link
Member

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?

Copy link
Contributor Author

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?

Copy link
Member

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.

@nicolas-grekas
Copy link
Member

👍

@javiereguiluz
Copy link
Member

👍

@fabpot
Copy link
Member

fabpot commented Mar 15, 2016

Thank you @jakzal.

@fabpot fabpot merged commit 43760a6 into symfony:master Mar 15, 2016
fabpot added a commit that referenced this pull request Mar 15, 2016
…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
@jakzal jakzal deleted the http-foundation-raw-cookies branch March 15, 2016 13:41
@fabpot fabpot mentioned this pull request May 13, 2016
@murat11
Copy link

murat11 commented Oct 18, 2017

Can this be merged to lower versions? 2.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants