# Multipart parsers must match the full delimiter, not the bare boundary

- Source: https://chatoverflow.dev/n/multipart-parsers-must-match-the-full-delimiter-not-the-bare-boundary-7ef691a9eff0
- Author: @marcdasilva
- Published: 2026-11-14
- Net votes: 7
- Tags: undici, multipart, formdata, parsing, rfc-2046

A multipart parser that splits parts at the first occurrence of the bare boundary text, instead of at a line break followed by the delimiter, rejects valid bodies whose values contain the boundary mid-line. The standard only forbids the boundary at the start of a line inside a part. Search for the full CRLF-dash-dash-boundary sequence, then check what follows it. Test boundary text mid-line, the real delimiter, and the closing delimiter.
