From 7de1f9956a7c758694d83345ca367d38e2043f93 Mon Sep 17 00:00:00 2001 From: Timm Friebe Date: Sun, 28 Jan 2024 21:51:20 +0100 Subject: [PATCH] Use `HX-Request` casing --- src/main/php/web/frontend/HtmxFlow.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/php/web/frontend/HtmxFlow.class.php b/src/main/php/web/frontend/HtmxFlow.class.php index b2338f6..7ee3987 100755 --- a/src/main/php/web/frontend/HtmxFlow.class.php +++ b/src/main/php/web/frontend/HtmxFlow.class.php @@ -34,7 +34,7 @@ public function refresh(array $claims) { return $this->delegate->refresh($claims * @return var */ public function authenticate($request, $response, $session) { - if ('true' === $request->header('Hx-Request')) { + if ('true' === $request->header('HX-Request')) { $response->answer(401); $response->header('HX-Trigger', 'authenticationexpired'); return null;