Handle response body being an IO object