mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 08:24:13 +00:00
Prior to this commit, gh-30953 fixed a case where multipart file parts were not emitted properly when the body itself is empty. There are other cases like this, depending on the order and slicing of data buffers received by the parser. Here, a buffer containing the entire boundary would not cause an empty file part to be emitted and instead switch to the next header. This commit ensures that empty file parts are always emitted as they should. Fixes gh-37264