| Index: net/http/partial_data.cc
|
| ===================================================================
|
| --- net/http/partial_data.cc (revision 148620)
|
| +++ net/http/partial_data.cc (working copy)
|
| @@ -242,9 +242,6 @@
|
| disk_cache::Entry* entry,
|
| bool truncated) {
|
| resource_size_ = 0;
|
| - if (!headers->HasStrongValidators())
|
| - return false;
|
| -
|
| if (truncated) {
|
| DCHECK_EQ(headers->response_code(), 200);
|
| // We don't have the real length and the user may be trying to create a
|
| @@ -252,6 +249,9 @@
|
| if (byte_range_.IsValid())
|
| return false;
|
|
|
| + if (!headers->HasStrongValidators())
|
| + return false;
|
| +
|
| // Now we avoid resume if there is no content length, but that was not
|
| // always the case so double check here.
|
| int64 total_length = headers->GetContentLength();
|
| @@ -270,7 +270,7 @@
|
| return true;
|
| }
|
|
|
| - if (headers->response_code() == 200) {
|
| + if (headers->response_code() != 206) {
|
| DCHECK(byte_range_.IsValid());
|
| sparse_entry_ = false;
|
| resource_size_ = entry->GetDataSize(kDataStream);
|
|
|