ensure response.stream is closed
Merge pull request #9627 from rubys/master

ensure response.stream is closed