Fixes: 19167,16801,17282,17682,17690,18616 Yes, this one line fix closes

all of these bugs and has taken 40 some hours to find.  Good night.
This commit is contained in:
dougt%netscape.com 1999-11-19 04:11:16 +00:00
Родитель 3bf1765e27
Коммит 365b2789ad
1 изменённых файлов: 3 добавлений и 2 удалений

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

@ -780,12 +780,13 @@ nsresult nsHTTPChannel::ResponseCompleted(nsIChannel* aTransport,
PRBool bPropogateOnStop = PR_TRUE;
// Don't fire OnStops for redirects-- confuses imagelib. See #17393
// Don't fire OnStops for redirects -- confuses imagelib. See #17393
if (mResponse && (aStatus == NS_OK))
{
PRUint32 resp;
mResponse->GetStatus(&resp);
if (3 == (int)(resp/100)) // 3* is the redirects
// 3* is the redirects. A 401 error will also confuse imagelib.
if (3 == (int)(resp/100) || 401 == resp)
bPropogateOnStop = PR_FALSE;
}