diff --git a/netwerk/cache/src/nsCacheEntryDescriptor.cpp b/netwerk/cache/src/nsCacheEntryDescriptor.cpp index b9dec55e0cd6..b8e5326feb58 100644 --- a/netwerk/cache/src/nsCacheEntryDescriptor.cpp +++ b/netwerk/cache/src/nsCacheEntryDescriptor.cpp @@ -176,9 +176,10 @@ NS_IMETHODIMP nsCacheEntryDescriptor::SetDataSize(PRUint32 dataSize) NS_IMETHODIMP nsCacheEntryDescriptor::GetTransport(nsITransport * *aTransport) { - if (!mCacheEntry) return NS_ERROR_NOT_AVAILABLE; + if (!mCacheEntry) return NS_ERROR_NOT_AVAILABLE; + if (!mCacheEntry->IsStreamData()) return NS_ERROR_CACHE_DATA_IS_NOT_STREAM; - return NS_ERROR_NOT_IMPLEMENTED; + return mCacheEntry->CacheDevice()->GetTransportForEntry(mCacheEntry, aTransport); }