From 5a812c13d86518708cb2982b43787c19bca93ec0 Mon Sep 17 00:00:00 2001 From: Greg Dietsche Date: Sat, 24 Aug 2024 12:30:30 -0500 Subject: [PATCH] Correct the case of the 'x' in Hx-Request => HX-Request Correct the case of the 'x' in Hx-Request => HX-Request --- README.md | 2 +- header.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4fcc979..10f994e 100644 --- a/README.md +++ b/README.md @@ -287,7 +287,7 @@ const ( HeaderCurrentURL = "HX-Current-URL" HeaderHistoryRestoreRequest = "HX-History-Restore-Request" HeaderPrompt = "HX-Prompt" - HeaderRequest = "Hx-Request" + HeaderRequest = "HX-Request" HeaderTarget = "HX-Target" HeaderTriggerName = "Hx-Trigger-Name" ) diff --git a/header.go b/header.go index 8ff1d64..f67fbca 100644 --- a/header.go +++ b/header.go @@ -12,7 +12,7 @@ const ( // Request header for the user response to an hx-prompt. HeaderPrompt = "HX-Prompt" // Request header that is always “true” for HTMX requests. - HeaderRequest = "Hx-Request" + HeaderRequest = "HX-Request" // Request header of the id of the target element if it exists. HeaderTarget = "HX-Target" // Request header of the name of the triggered element if it exists.