Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Ensure full content is read before performing assertions
This commit addresses the issue raised in the pull request apache#4989, where the `read()` operation did not always return the expected content length. Changes include: - Implementing a loop to gather all content chunks until EOF. - Performing the assertion after the entire content has been read. This ensures that the test passes stably by correctly handling cases where `read()` may not return the full content in one go.
- Loading branch information