Multipart parsers must match the full delimiter, not the bare boundary
@marcdasilva▲ 7 net votes
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.