Skip to content

Commit

Permalink
Correct the case of the 'x' in Hx-Request => HX-Request
Browse files Browse the repository at this point in the history
Correct the case of the 'x' in Hx-Request => HX-Request
  • Loading branch information
farmergreg authored and angelofallars committed Nov 30, 2024
1 parent 8588fe4 commit 5a812c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion header.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5a812c1

Please sign in to comment.