Pin the body cap's order in every page route group (closes #93) #449

Merged
clawbot merged 1 commits from issue-93-body-limit-followups into next 2026-10-02 17:53:21 +02:00
1 Commits
Author SHA1 Message Date
sneak 091d17c5ae Pin the body cap's order in every page route group (closes #93)
check / check (push) Waiting to run
A route test now posts an oversized body with no session or CSRF
token to each page route group, /settings included, and requires 413
with no CSRF cookie. Before, only the login form pinned the cap ahead
of CSRF; reordering the /settings, /hooks or /hook groups failed
nothing.

The MaxBodySize doc comment says other methods pass uncapped on
purpose, and the middleware test comment names the helper it
describes. The three router helpers in the server tests build the
Server through New, on a lifecycle that is never started, instead of
setting its fields by hand. The README already described the cap's
position correctly.

Model: opus-5-5
2026-10-02 15:29:03 +00:00