Skip to content

Commit be22ba1

Browse files
authored
Merge pull request #586 from FriendsOfSymfony/use-tag-header-parser
use tag header parser
2 parents 9c93836 + a6d07c5 commit be22ba1

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Changelog
22
=========
33

4+
2.14.0
5+
------
6+
7+
* Fix handling of custom glue for response tags. If you use custom glue with the Symfony HttpCache,
8+
you can now configure a customized tag header parser on the `PurgeTagsListener`.
9+
410
2.13.0
511
------
612

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
],
2323
"require": {
2424
"php": "^7.3 || ^8.0",
25-
"friendsofsymfony/http-cache": "^2.6",
25+
"friendsofsymfony/http-cache": "^2.15",
2626
"symfony/framework-bundle": "^4.4.0 || ^5.0 || ^6.0",
2727
"symfony/http-foundation": "^4.4.0 || ^5.0 || ^6.0",
2828
"symfony/http-kernel": "^4.4.0 || ^5.0 || ^6.0"

src/Http/SymfonyResponseTagger.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function tagSymfonyResponse(Response $response, $replace = false)
3434
if (!$replace && $response->headers->has($this->getTagsHeaderName())) {
3535
$header = $response->headers->get($this->getTagsHeaderName());
3636
if ('' !== $header) {
37-
$this->addTags(explode(',', $response->headers->get($this->getTagsHeaderName())));
37+
$this->addTags($this->parseTagsHeaderValue($response->headers->get($this->getTagsHeaderName())));
3838
}
3939
}
4040

0 commit comments

Comments
 (0)