Skip to content

Commit ccd92f6

Browse files
committed
this is just random guess at this point
1 parent 1bc8bd2 commit ccd92f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bundle/Controller/InvalidateTokenController.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
class InvalidateTokenController
1717
{
18-
public const TOKEN_HEADER_NAME = 'X-Invalidate-Token';
18+
public const TOKEN_HEADER_NAME = 'x-invalidate-token';
1919

2020
/**
2121
* @var \Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface
@@ -71,7 +71,7 @@ public function tokenAction(Request $request)
7171

7272
$headers = $response->headers;
7373
$headers->set('Content-Type', 'application/vnd.ezplatform.invalidate-token');
74-
$headers->set('X-Invalidate-Token', $this->configResolver->getParameter('http_cache.varnish_invalidate_token'));
74+
$headers->set(self::TOKEN_HEADER_NAME, $this->configResolver->getParameter('http_cache.varnish_invalidate_token'));
7575
$response->setSharedMaxAge($this->ttl);
7676
$response->setVary('Accept', true);
7777
// header to avoid Symfony SessionListener overwriting the response to private

0 commit comments

Comments
 (0)