mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
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:
parent
edb971f5e2
commit
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...
|
||||
|
Loading…
Reference in New Issue
Block a user