@@ -254,7 +254,7 @@ void HTMLFormTest::testReadMultipart()
254254 " --MIME_boundary_0123456789--\r\n "
255255 );
256256 HTTPRequest req (" POST" , " /form.cgi" );
257- req.setContentType (HTMLForm::ENCODING_MULTIPART + " ; boundary=\" MIME_boundary_0123456789\" " );
257+ req.setContentType (HTMLForm::ENCODING_MULTIPART + " ; boundary=MIME_boundary_0123456789" );
258258 StringPartHandler sah;
259259 HTMLForm form (req, istr, sah);
260260 assertTrue (form.size () == 4 );
@@ -309,9 +309,8 @@ void HTMLFormTest::testSubmit3()
309309 HTTPRequest req (" POST" , " /form.cgi" , HTTPMessage::HTTP_1_1);
310310 form.prepareSubmit (req);
311311 std::string expCT (HTMLForm::ENCODING_MULTIPART);
312- expCT.append (" ; boundary=\" " );
312+ expCT.append (" ; boundary=" );
313313 expCT.append (form.boundary ());
314- expCT.append (" \" " );
315314 assertTrue (req.getContentType () == expCT);
316315 assertTrue (req.getChunkedTransferEncoding ());
317316}
@@ -343,9 +342,8 @@ void HTMLFormTest::testSubmit5()
343342 HTTPRequest req (" POST" , " /form.cgi" , HTTPMessage::HTTP_1_1);
344343 form.prepareSubmit (req, HTMLForm::OPT_USE_CONTENT_LENGTH);
345344 std::string expCT (HTMLForm::ENCODING_MULTIPART);
346- expCT.append (" ; boundary=\" " );
345+ expCT.append (" ; boundary=" );
347346 expCT.append (form.boundary ());
348- expCT.append (" \" " );
349347 assertTrue (req.getContentType () == expCT);
350348 assertTrue (req.getContentLength () == 403 );
351349}
@@ -395,7 +393,7 @@ void HTMLFormTest::testFieldLimitMultipart()
395393 " --MIME_boundary_0123456789--\r\n "
396394 );
397395 HTTPRequest req (" POST" , " /form.cgi" );
398- req.setContentType (HTMLForm::ENCODING_MULTIPART + " ; boundary=\" MIME_boundary_0123456789\" " );
396+ req.setContentType (HTMLForm::ENCODING_MULTIPART + " ; boundary=MIME_boundary_0123456789" );
399397 StringPartHandler sah;
400398 HTMLForm form;
401399 form.setFieldLimit (3 );
0 commit comments