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:
parent
dfa59997e3
commit
5765cfaeab
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue