Fixed incorrect content length header when building a message.

git-svn-id: http://yate.null.ro/svn/yate/trunk@1620 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2008-01-11 14:48:53 +00:00
parent dfa59997e3
commit 5765cfaeab
1 changed files with 1 additions and 4 deletions

View File

@ -567,10 +567,7 @@ const DataBlock& SIPMessage::getBuffer() const
if (body) {
String s;
body->buildHeaders(s);
s << "Content-Length: " << body->getBody().length() << "\r\n";
// The multipart will add an empty line anyway
if (!body->isMultipart())
s << "\r\n";
s << "Content-Length: " << body->getBody().length() << "\r\n\r\n";
m_data += s;
}
else