Skip to content

Commit 62b598d

Browse files
committed
docs(webapp): say which layer refuses an oversized agent body
The route-level check only sees a declared content-length; a body without one is already ended mid-stream by the ingress cap.
1 parent 1cdf1f0 commit 62b598d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/webapp/app/routes/resources.orgs.$organizationSlug.projects.$projectParam.env.$envParam.dashboard-agent.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,8 @@ export const action = async ({ request, params }: ActionFunctionArgs) => {
240240
return json({ error: "Not found" }, { status: 404 });
241241
}
242242

243-
// Refused before any lookup, so an oversized body costs nothing.
243+
// A declared oversize is refused here, before any lookup. Without a content-length the
244+
// ingress cap has already ended the request mid-stream, so this never sees it.
244245
if (exceedsMessageBodyBytes(declaredBodyBytes(request.headers))) {
245246
return messageTooLarge();
246247
}

0 commit comments

Comments
 (0)