Skip to content

Commit

Permalink
Use HX-Request casing
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Jan 28, 2024
1 parent 33e6905 commit 7de1f99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/php/web/frontend/HtmxFlow.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7de1f99

Please sign in to comment.