Skip to content

Commit 2f47a40

Browse files
authored
Merge pull request #426 from Toflar/fix-max-header-value-formatter
Fixed tags header name not being returned
2 parents 80ae446 + ce1f3c8 commit 2f47a40

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/TagHeaderFormatter/MaxHeaderValueLengthFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function __construct(TagHeaderFormatter $inner, $maxHeaderValueLength = 4
5353
*/
5454
public function getTagsHeaderName()
5555
{
56-
$this->inner->getTagsHeaderName();
56+
return $this->inner->getTagsHeaderName();
5757
}
5858

5959
/**

tests/Unit/TagHeaderFormatter/MaxHeaderValueLengthFormatterTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818

1919
class MaxHeaderValueLengthFormatterTest extends TestCase
2020
{
21+
public function testGetTagsHeaderName()
22+
{
23+
$formatter = $this->getFormatter(50);
24+
$this->assertSame('X-Cache-Tags', $formatter->getTagsHeaderName());
25+
}
26+
2127
public function testNotTooLong()
2228
{
2329
$formatter = $this->getFormatter(50);

0 commit comments

Comments
 (0)