Refactoring

pull/209/head
M66B 2 years ago
parent 024b823f38
commit 5f82eb962d

@ -3209,8 +3209,8 @@ public class MessageHelper {
if (h.contentType.match(ct)) { if (h.contentType.match(ct)) {
String _charset = ct.getParameter("charset"); String _charset = ct.getParameter("charset");
Charset _cs = (TextUtils.isEmpty(_charset) Charset _cs = (TextUtils.isEmpty(_charset)
? StandardCharsets.ISO_8859_1 : ? StandardCharsets.ISO_8859_1
Charset.forName(_charset)); : Charset.forName(_charset));
result = Helper.readStream(bp.getInputStream(), _cs); result = Helper.readStream(bp.getInputStream(), _cs);
} }
} catch (Throwable ex) { } catch (Throwable ex) {

Loading…
Cancel
Save