Fix zero-length byte buffer in InspectedContent by GaoSSR · Pull Request #48649 · spring-projects/spring-boot

snicoll

Signed-off-by: 高春晖 <18220699480@163.com>
This test calls OutputStream.write(int) directly, which triggers
ArrayIndexOutOfBoundsException when singleByteBuffer is new byte[0].

The fix (byte[0] -> byte[1]) makes this test pass.

Signed-off-by: 高春晖 <18220699480@163.com>
Signed-off-by: 高春晖 <18220699480@163.com>
Signed-off-by: 高春晖 <18220699480@163.com>

snicoll pushed a commit that referenced this pull request

Dec 31, 2025
See gh-48649

Signed-off-by: 高春晖 <18220699480@163.com>

snicoll added a commit that referenced this pull request

Dec 31, 2025