Changeset 00d54bc in Klonkt for README.md

Timestamp:
06/16/2026 03:38:33 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
5f43245
Parents:
baa2e59
Message:

Fix: htmx-partial 500 on non-ASCII characters in post title

The HX-Trigger-After-Settle header received the post title unfiltered via
JSON.stringify. HTTP header values are Latin-1; an em-dash, smart quote,
or emoji in the title (e.g. "Welkom — gebouwd met Klonkt") caused setHeader
to throw ERR_INVALID_CHAR -> partial 500 -> the card appeared "not clickable"
(full page worked fine, as it doesn't set the header).

Escape non-ASCII to \uXXXX: the header stays ASCII-safe and valid JSON that
htmx reads back unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@…>

(No files)

Note: See TracChangeset for help on using the changeset viewer.