fix for MultipartWriter leading CR-LF bug

This commit is contained in:
Guenter Obiltschnig
2007-01-11 12:41:30 +00:00
parent d615c47379
commit 8a498c2e19
7 changed files with 22 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
//
// HTMLFormTest.cpp
//
// $Id: //poco/1.3/Net/testsuite/src/HTMLFormTest.cpp#1 $
// $Id: //poco/1.3/Net/testsuite/src/HTMLFormTest.cpp#2 $
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
@@ -133,7 +133,7 @@ void HTMLFormTest::testWriteMultipart()
std::ostringstream ostr;
form.write(ostr, "MIME_boundary_0123456789");
std::string s = ostr.str();
assert (s == "\r\n"
assert (s ==
"--MIME_boundary_0123456789\r\n"
"Content-Disposition: form-data; name=\"field1\"\r\n"
"\r\n"