зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
edb971f5e2
Коммит
ae0239b558
|
@ -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...
|
||||
|
|
Загрузка…
Ссылка в новой задаче