mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
Parts were emitted only from PartListener.onBody(buffer, last=true), so a part with an empty body (for example a blank form field, or a trailing empty part) was silently dropped from the resulting MultiValueMap, and was indistinguishable from an absent field. This carries over the fix from the reactive DefaultPartHttpMessageReader (spring-framework#30953): State gains an onComplete() callback that emits the part, also when it has an empty body. It is invoked when a new part begins, and when parsing completes for the final part. Signed-off-by: Sagar Chanchal <Sagarr2112@gmail.com>