From ebf290e8f5176d0d7ff37f18e569da608f4d356d Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 01:41:03 +0000 Subject: [PATCH] Assert POST error content-type in smoke test Co-authored-by: Theo Browne --- apps/t3/scripts/smoke-test.mjs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/t3/scripts/smoke-test.mjs b/apps/t3/scripts/smoke-test.mjs index 19c719757d..9404f18f35 100644 --- a/apps/t3/scripts/smoke-test.mjs +++ b/apps/t3/scripts/smoke-test.mjs @@ -238,6 +238,13 @@ async function main() { )}.`, ); } + if ((postPage.headers.get("content-type") ?? "").toLowerCase() !== "text/plain; charset=utf-8") { + throw new Error( + `Smoke test failed: expected plain-text POST error content-type, got ${String( + postPage.headers.get("content-type"), + )}.`, + ); + } if ((postPage.headers.get("cache-control") ?? "").toLowerCase() !== "no-store") { throw new Error("Smoke test failed: expected cache-control=no-store on POST response."); }