more cgi processing multiform work.

This commit is contained in:
Brad Arant committed 2025-03-17 16:45:34 -07:00
1 parent b774e50b59
commit bd5223ca36
5 files changed
+44 -5

No files matched your search

+7 -1
View File
@@ -8,16 +8,22 @@ namespace coreutils {
IMFMultipart::IMFMultipart(int fd, MString boundary) {
int ch = 0;
int rc = 0;
std::cout << "020" << std::endl;
while((ch != '\r') && (ch != '\n')) {
rc = ::read(fd, &ch, 1);
if((ch != '\r') && (ch != '\n'))
std::cout << (char)ch;
boundary.write(ch);
}
if(ch == '\r') {
std::cout << std::endl;
rc = ::read(fd, &ch, 1);
}
while(1) {
sections.emplace_back(fd, boundary);
std::cout << "021: " << boundary << std::endl;
IMFFormData *formData = new IMFFormData(fd, boundary);
std::cout << "022" << std::endl;
rc = ::read(fd, &ch, 1);
if(ch == '-') {
rc = ::read(fd, &ch, 1);