write \0 not on but after the CRLF on Headers

This commit is contained in:
andreas.otte%primus-online.de 1999-06-06 09:40:56 +00:00
Родитель 6b72c8c86e
Коммит a13711461f
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -133,7 +133,7 @@ nsHTTPRequest::Build()
lineBuffStr.Append((const nsString&)*element->value);
lineBuffStr.Append(CRLF);
NS_ASSERTION((lineBuffStr.Length() <= 1024), "Increase line buffer length!");
lineBuffStr.ToCString(lineBuffer, lineBuffStr.Length());
lineBuffStr.ToCString(lineBuffer, lineBuffStr.Length()+1);
lineBuffer[lineBuffStr.Length()] = '\0';
rv = m_Request->Fill(lineBuffer, PL_strlen(lineBuffer), &bytesWritten);
if (NS_FAILED(rv)) return rv;
@ -938,4 +938,4 @@ nsHTTPRequest::SetConnection(nsHTTPConnection* i_pConnection)
{
m_pConnection = i_pConnection;
return NS_OK;
}
}