summaryrefslogtreecommitdiffstats
path: root/net/url_request
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-04 23:36:33 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-04 23:36:33 +0000
commit28accfe389231216b005650593fb81857a788b50 (patch)
treef498a178308fad6b261b9123e3afb758dcb0d63e /net/url_request
parent4ec516851c4f8990c048e6ffa9886dc6074d874a (diff)
downloadchromium_src-28accfe389231216b005650593fb81857a788b50.zip
chromium_src-28accfe389231216b005650593fb81857a788b50.tar.gz
chromium_src-28accfe389231216b005650593fb81857a788b50.tar.bz2
Http Cache: Add support for resuming downloading a
resource after the original request was interrupted. BUG=8995 TEST=unittests Review URL: http://codereview.chromium.org/197016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25551 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request')
-rw-r--r--net/url_request/url_request_view_cache_job.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/url_request/url_request_view_cache_job.cc b/net/url_request/url_request_view_cache_job.cc
index ca82680..112f409 100644
--- a/net/url_request/url_request_view_cache_job.cc
+++ b/net/url_request/url_request_view_cache_job.cc
@@ -66,7 +66,9 @@ static std::string FormatEntryDetails(disk_cache::Entry* entry) {
std::string result = EscapeForHTML(entry->GetKey());
net::HttpResponseInfo response;
- if (net::HttpCache::ReadResponseInfo(entry, &response) && response.headers) {
+ bool truncated;
+ if (net::HttpCache::ReadResponseInfo(entry, &response, &truncated) &&
+ response.headers) {
result.append("<hr><pre>");
result.append(EscapeForHTML(response.headers->GetStatusLine()));
result.push_back('\n');