Added assertion for bug I was hitting (spinning).

git-svn-id: svn://10.0.0.236/trunk@41274 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
warren%netscape.com 1999-07-27 08:47:43 +00:00
parent b8c845642e
commit a207202ff4

View File

@ -130,6 +130,7 @@ nsHTTPResponseListener::OnDataAvailable(nsIChannel* channel,
while (NS_SUCCEEDED(rv) && i_Length && !m_bHeadersDone) {
rv = ParseHTTPHeader(pBuffer, i_Length, &actualBytesRead);
NS_ASSERTION(i_Length - actualBytesRead <= i_Length, "wrap around");
i_Length -= actualBytesRead;
}