Skip to content

Commit

Permalink
Merge pull request #586 from FriendsOfSymfony/use-tag-header-parser
Browse files Browse the repository at this point in the history
use tag header parser
  • Loading branch information
dbu authored Dec 1, 2022
2 parents 9c93836 + a6d07c5 commit be22ba1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Changelog
=========

2.14.0
------

* Fix handling of custom glue for response tags. If you use custom glue with the Symfony HttpCache,
you can now configure a customized tag header parser on the `PurgeTagsListener`.

2.13.0
------

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
],
"require": {
"php": "^7.3 || ^8.0",
"friendsofsymfony/http-cache": "^2.6",
"friendsofsymfony/http-cache": "^2.15",
"symfony/framework-bundle": "^4.4.0 || ^5.0 || ^6.0",
"symfony/http-foundation": "^4.4.0 || ^5.0 || ^6.0",
"symfony/http-kernel": "^4.4.0 || ^5.0 || ^6.0"
Expand Down
2 changes: 1 addition & 1 deletion src/Http/SymfonyResponseTagger.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function tagSymfonyResponse(Response $response, $replace = false)
if (!$replace && $response->headers->has($this->getTagsHeaderName())) {
$header = $response->headers->get($this->getTagsHeaderName());
if ('' !== $header) {
$this->addTags(explode(',', $response->headers->get($this->getTagsHeaderName())));
$this->addTags($this->parseTagsHeaderValue($response->headers->get($this->getTagsHeaderName())));
}
}

Expand Down

0 comments on commit be22ba1

Please sign in to comment.