| Index: net/tools/dump_cache/cache_dumper.cc
|
| ===================================================================
|
| --- net/tools/dump_cache/cache_dumper.cc (revision 25542)
|
| +++ net/tools/dump_cache/cache_dumper.cc (working copy)
|
| @@ -139,10 +139,15 @@
|
| int len;
|
| if (index == 0) { // Stream 0 is the headers.
|
| net::HttpResponseInfo response_info;
|
| + bool truncated;
|
| if (!net::HttpCache::ParseResponseInfo(buf->data(), buf_len,
|
| - &response_info))
|
| + &response_info, &truncated))
|
| return false;
|
|
|
| + // Skip this entry if it was truncated (results in an empty file).
|
| + if (truncated)
|
| + return true;
|
| +
|
| // Remove the size headers.
|
| response_info.headers->RemoveHeader("transfer-encoding");
|
| response_info.headers->RemoveHeader("content-length");
|
|
|