Merge pull request #70 from jordyd/base64

Fix base64 due to from_utf8 and replace changes
This commit is contained in:
Jordi Boggiano 2014-02-04 04:24:29 -08:00
commit c00c608567

View file

@ -82,9 +82,9 @@ fn main() {
}
fn decode(input: &mut Reader, ignore_garbage: bool) {
let mut to_decode = str::from_utf8_owned(input.read_to_end());
let mut to_decode = str::from_utf8_owned(input.read_to_end()).unwrap();
to_decode = to_decode.replace("\n", "");
to_decode = str::replace(to_decode, "\n", "");
if ignore_garbage {
let standard_chars =