Skip to content
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

[HttpKernel] Handle an array vary header in the http cache store #14635

Conversation

jakzal
Copy link
Contributor

@jakzal jakzal commented May 14, 2015

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #12118
License MIT
Doc PR -

@@ -127,7 +127,7 @@ public function lookup(Request $request)
// find a cached entry that matches the request.
$match = null;
foreach ($entries as $entry) {
if ($this->requestsMatch(isset($entry[1]['vary'][0]) ? $entry[1]['vary'][0] : '', $request->headers->all(), $entry[0])) {
if ($this->requestsMatch(isset($entry[1]['vary'][0]) ? implode(', ', $entry[1]['vary']) : '', $request->headers->all(), $entry[0])) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There's one more place in this class where only the first vary header is used. It doesn't seem to be an issue in there though. At least I failed to introduce a failing test justifying a change (so far).

@jakzal jakzal force-pushed the bugfix/http-kernel-12118-vary-headers-passed-as-array branch from e2a5a4e to 5930800 Compare May 14, 2015 15:01
@nicolas-grekas
Copy link
Member

👍

@fabpot fabpot changed the title [WIP][HttpKernel] Handle an array vary header in the http cache store [HttpKernel] Handle an array vary header in the http cache store May 21, 2015
@fabpot
Copy link
Member

fabpot commented May 21, 2015

Thank you @jakzal.

@fabpot fabpot merged commit 5930800 into symfony:2.3 May 21, 2015
fabpot added a commit that referenced this pull request May 21, 2015
… store (jakzal)

This PR was merged into the 2.3 branch.

Discussion
----------

[HttpKernel] Handle an array vary header in the http cache store

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #12118
| License       | MIT
| Doc PR        | -

Commits
-------

5930800 [HttpKernel] Handle an array vary header in the http cache store
@jakzal jakzal deleted the bugfix/http-kernel-12118-vary-headers-passed-as-array branch May 21, 2015 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants