src/server.ts (~61–65) checks only the declared content-length; a chunked request with no Content-Length reads unbounded. Count bytes as they arrive and stop at the cap (the template's readBody), and add the regression test for a chunked over-cap body (only the truthful-header case is tested today, src/server.test.ts ~435).
src/server.ts(~61–65) checks only the declaredcontent-length; a chunked request with no Content-Length reads unbounded. Count bytes as they arrive and stop at the cap (the template'sreadBody), and add the regression test for a chunked over-cap body (only the truthful-header case is tested today,src/server.test.ts~435).