Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1330)

Unified Diff: net/http/http_response_headers.cc

Issue 118345: Http Cache: First pass of byte-range requests support.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_response_headers.h ('k') | net/http/partial_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_response_headers.cc
===================================================================
--- net/http/http_response_headers.cc (revision 18197)
+++ net/http/http_response_headers.cc (working copy)
@@ -121,6 +121,9 @@
if ((options & PERSIST_SANS_HOP_BY_HOP) == PERSIST_SANS_HOP_BY_HOP)
AddHopByHopHeaders(&filter_headers);
+ if ((options & PERSIST_SANS_RANGES) == PERSIST_SANS_RANGES)
+ AddHopContentRangeHeaders(&filter_headers);
+
std::string blob;
blob.reserve(raw_headers_.size());
@@ -645,6 +648,10 @@
result->insert(std::string(kChallengeResponseHeaders[i]));
}
+void HttpResponseHeaders::AddHopContentRangeHeaders(HeaderSet* result) {
+ result->insert("content-range");
+}
+
void HttpResponseHeaders::GetMimeTypeAndCharset(std::string* mime_type,
std::string* charset) const {
mime_type->clear();
« no previous file with comments | « net/http/http_response_headers.h ('k') | net/http/partial_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698