Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Close transit input stream after reading response (#565)
Connections are not closing immediately after coercing the body using transit. This is a regression introduced in #475. Previously, the response body always was also transferred into an intermediate byte-array which will read bytes until the stream is empty, and automatically close the connection. Since we no longer have this implicit behavior, the body coercion middleware must close the inputstream after reading a value. Fixes #564
- Loading branch information