mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
synced 2025-11-04 12:38:02 +00:00
Add getPartList() to HTMLForm #162
This commit is contained in:
@@ -146,6 +146,13 @@ void HTMLFormTest::testWriteMultipart()
|
||||
"--MIME_boundary_0123456789--\r\n"
|
||||
);
|
||||
assert(s.length() == form.calculateContentLength());
|
||||
|
||||
const HTMLForm::PartVec& parts = form.getPartList();
|
||||
assert(parts.size() == 2);
|
||||
assert(parts[0].name() == "attachment1");
|
||||
assert(parts[1].name() == "attachment2");
|
||||
assert(parts[1].filename() == "att2.txt");
|
||||
assert(parts[1].headers()["Content-ID"] == "1234abcd");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user