fixes bug 157861 - have to hit Back twice to return to '300: multiple choices'

r=dougt sr=rpotts a=asa
This commit is contained in:
darin%netscape.com 2002-07-24 01:32:07 +00:00
Родитель 46ad5e61e0
Коммит b79ba9c9dd
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -1227,8 +1227,10 @@ nsHttpChannel::ReadFromCache()
}
// if this is a cached redirect, we must process the redirect asynchronously
// since AsyncOpen may not have returned yet.
if (mResponseHead && (mResponseHead->Status() / 100 == 3))
// since AsyncOpen may not have returned yet. Make sure there is a Location
// header, otherwise we'll have to treat this like a normal 200 response.
if (mResponseHead && (mResponseHead->Status() / 100 == 3)
&& (mResponseHead->PeekHeader(nsHttp::Location)))
return AsyncRedirect();
// Get a transport to the cached data...