Commit ccd92f6 1 parent 1bc8bd2 commit ccd92f6 Copy full SHA for ccd92f6
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 15
15
16
16
class InvalidateTokenController
17
17
{
18
- public const TOKEN_HEADER_NAME = 'X-Invalidate-Token ' ;
18
+ public const TOKEN_HEADER_NAME = 'x-invalidate-token ' ;
19
19
20
20
/**
21
21
* @var \Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface
@@ -71,7 +71,7 @@ public function tokenAction(Request $request)
71
71
72
72
$ headers = $ response ->headers ;
73
73
$ 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 ' ));
75
75
$ response ->setSharedMaxAge ($ this ->ttl );
76
76
$ response ->setVary ('Accept ' , true );
77
77
// header to avoid Symfony SessionListener overwriting the response to private
You can’t perform that action at this time.
0 commit comments