Optmizations for IMF objects.

This commit is contained in:
Brad Arant committed 2021-09-23 16:30:33 -07:00
1 parent a0129273b3
commit d4148b0ab4
4 files changed
+11 -371

No files matched your search

+3 -3
View File
@@ -12,7 +12,7 @@ namespace coreutils {
IMFMessage::IMFMessage(ZString &in) : ZString(in) {
while (!in.ifNext("\r\n")) {
headers.emplace_back(in);
headers.emplace_back(in);
}
ZString type = getHeader("Content-Type");
@@ -21,10 +21,10 @@ namespace coreutils {
ZString block = in.readBlock(len);
if(type.equals("multipart/form-data"))
body = new IMFMultipart(block, getHeaderKeyPairValue("Content-Type", "boundary"));
else if(type.equals("text/plain"))
else if(type.equals("text/plain"))
body = new IMFPlainText(block);
else
body = new IMFBody(block);
body = new IMFBody(block);
}
}