зеркало из https://github.com/mozilla/gecko-dev.git
write \0 not on but after the CRLF on Headers
This commit is contained in:
Родитель
45b8467782
Коммит
324027b316
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче