HTTP 300 page screws up session history

bug=114982 sr=darin r=rpotts a=asa


git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@118724 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
badami%netscape.com
2002-04-11 04:56:03 +00:00
parent daca085785
commit d8a4df2f50

View File

@@ -505,15 +505,10 @@ nsHttpChannel::ProcessResponse()
case 302:
case 307:
// these redirects can be cached (don't store the response body)
if (mCacheEntry) {
rv = InitCacheEntry();
if (NS_FAILED(rv))
CloseCacheEntry(rv);
}
rv = ProcessRedirection(httpStatus);
CloseCacheEntry(rv);
if (NS_FAILED(rv)) {
if (NS_SUCCEEDED(rv))
CloseCacheEntry(InitCacheEntry());
else {
LOG(("ProcessRedirection failed [rv=%x]\n", rv));
rv = ProcessNormal();
}