Index: net/http/http_cache_transaction.cc |
=================================================================== |
--- net/http/http_cache_transaction.cc (revision 110737) |
+++ net/http/http_cache_transaction.cc (working copy) |
@@ -370,7 +370,8 @@ |
// entry how it is (it will be marked as truncated at destruction), and let |
// the next piece of code that executes know that we are now reading directly |
// from the net. |
- if (cache_ && entry_ && (mode_ & WRITE)) |
+ if (cache_ && entry_ && (mode_ & WRITE) && network_trans_.get() && |
+ !is_sparse_ && !range_requested_) |
gavinp
2011/11/22 18:24:39
So this is OK because downloads are never range_re
rvargas (doing something else)
2011/11/22 18:35:03
Yes we will. 22900 is an optimization, so in this
|
mode_ = NONE; |
} |