Don't read an InputStream twice. #739