Updated and working.
This commit is contained in:
1 parent
d4148b0ab4
commit
a37c4e6829
30 files changed
+422
-226
No files matched your search
+9
-11
@@ -3,21 +3,19 @@
|
||||
#include "IMFPlainText.h"
|
||||
|
||||
namespace coreutils {
|
||||
|
||||
|
||||
IMFFormData::IMFFormData() {}
|
||||
|
||||
IMFFormData::IMFFormData(ZString &in, ZString boundary) : IMFMultipart(in, boundary) {
|
||||
|
||||
}
|
||||
|
||||
IMFBody * IMFFormData::getByName(ZString name) {
|
||||
IMFFormData::IMFFormData(ZString &in, ZString &boundary) : IMFMultipart(in, boundary) {}
|
||||
|
||||
ZString IMFFormData::getByName(ZString &name) {
|
||||
for(ZString section: sections) {
|
||||
IMFMessage message(section);
|
||||
if(message.getHeaderKeyPairValue((char *)"Content-Disposition", (char *)"name").equals(name)) {
|
||||
return message.getBody();
|
||||
}
|
||||
if(message.getHeaderKeyPairValue("Content-Disposition", ("name")).equals(name)) {
|
||||
return message.multipart;
|
||||
}
|
||||
}
|
||||
return new IMFBody();
|
||||
return ZString();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user