Fixes redness on speedracer. sr=dougt

This commit is contained in:
darin%netscape.com 2001-03-22 03:25:24 +00:00
parent 9f4ba86ebe
commit f78db68af7

View File

@ -3430,9 +3430,12 @@ nsHTTPChannel::SetCacheAsFile(PRBool value)
{
if (!mCacheEntry)
return NS_ERROR_NOT_AVAILABLE;
return mCacheEntry->SetStoragePolicy(value ?
nsICache::STORE_ON_DISK_AS_FILE :
nsICache::STORE_ANYWHERE);
nsCacheStoragePolicy policy;
if (value)
policy = nsICache::STORE_ON_DISK_AS_FILE;
else
policy = nsICache::STORE_ANYWHERE;
return mCacheEntry->SetStoragePolicy(policy);
}
NS_IMETHODIMP