Don't read an InputStream twice. #738