~bigbes/sr-ht-dolt: 0b1e119a

chimw: take the chi helpers from ecore

Three things this service did not have. Read routes are registered for HEAD as
well as GET, so `curl -I` and every uptime probe stop being answered with a 405
and a kilobyte of error page; the twin shares the handler, so it cannot say 200
where the GET says 404. chi's two routing failures now render our own page
instead of net/http's plain text — an unrouted URL here was the one refusal on
the instance that did not look like the service it came from. And the request
line is a slog record rather than chi's colourised line on stdout, which was the
only line this daemon emitted that was neither structured nor on stderr.

chi's own middleware package loses the chimw alias to the package written
against; it is chimiddleware now, as ecore's package doc asks.

Eugene Blikh <bigbes@gmail.com> — 2026-08-08 21:31:08 UTC

Commit 0b1e119ae61a069e9844a127236e365e7a79041aview raw patch

Parent(s): 8ba716c3

3 changed file(s)

FileStatus+
cmd/doltsrht/main.go M +13 -2
web/router.go M +27 -11
web/web_test.go M +65