tobogganSe connecter

packages

The Louise packages, each released on its own

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

packages/multipart: multipart/form-data request bodies (ADR 0080)

boundary, parse body boundary limits and from_request req limits give
Form(fields, files: List<Upload(name, filename, content_type, data)>),
or NotMultipart, BadBoundary, Malformed(at, reason), TooManyFiles,
FileTooLarge, TooManyFields or FieldTooLarge.

Untrusted bodies: limits on files, file bytes, fields, field bytes and
part headers; only Content-Disposition and Content-Type are read; a
file name is cut to its last path segment (C:\a\b.png is b.png) and
refused with a control character; fields must be UTF-8; nested
multipart is refused; filename* is ignored. An empty file input is
dropped. The delimiter is found with Boyer-Moore-Horspool.

Tests in both back ends: random forms whose binary data is full of
line ends, dashes and near-boundaries round-trip through parse; every
limit and the malformed cases. CI checks and tests the package.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

olivier · il y a 2 sem. · 5b62ac251f4d1ed208db2fb8b367586920925b41

Parents ed9c28d

4 fichiers modifiés, 1355 ajouts, 0 suppressions