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:
parent
b8c845642e
commit
a207202ff4
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user