Optmizations for IMF objects.
This commit is contained in:
1 parent
a0129273b3
commit
d4148b0ab4
4 files changed
+11
-371
No files matched your search
+3
-3
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user