Skip to content

Commit

Permalink
Merge pull request #426 from Toflar/fix-max-header-value-formatter
Browse files Browse the repository at this point in the history
Fixed tags header name not being returned
  • Loading branch information
dbu authored Sep 27, 2018
2 parents 80ae446 + ce1f3c8 commit 2f47a40
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/TagHeaderFormatter/MaxHeaderValueLengthFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function __construct(TagHeaderFormatter $inner, $maxHeaderValueLength = 4
*/
public function getTagsHeaderName()
{
$this->inner->getTagsHeaderName();
return $this->inner->getTagsHeaderName();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@

class MaxHeaderValueLengthFormatterTest extends TestCase
{
public function testGetTagsHeaderName()
{
$formatter = $this->getFormatter(50);
$this->assertSame('X-Cache-Tags', $formatter->getTagsHeaderName());
}

public function testNotTooLong()
{
$formatter = $this->getFormatter(50);
Expand Down

0 comments on commit 2f47a40

Please sign in to comment.