1
0
Fork 0

minor bug fix: unbase64

This commit is contained in:
bagyenda 2008-05-12 18:12:41 +00:00
parent 7264d4f88d
commit 483c6d658d
1 changed files with 4 additions and 3 deletions

View File

@ -417,9 +417,10 @@ void unbase64_mimeparts(MIMEEntity *m)
octstr_destroy(s);
}
}
http_header_remove_all(headers, "Content-Transfer-Encoding"); /* Remove it in all cases (?).*/
mime_replace_headers(m, headers);
if (headers) {
http_header_remove_all(headers, "Content-Transfer-Encoding"); /* Remove it in all cases (?).*/
mime_replace_headers(m, headers);
}
done:
/* XXX may be we should deal with other transfer encodings here as well... */