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

Unified Diff: net/http/partial_data.cc

Issue 2549143003: Cleaned up the API of HttpUtil::ParseContentRangeHeader(). (Closed)
Patch Set: Fixed unittest Created 4 years 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_util_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/partial_data.cc
diff --git a/net/http/partial_data.cc b/net/http/partial_data.cc
index 915aaa4bb92e0f14670bb6003b79c2741aeeab6e..dceea25bcb0d093930c4043ed0bdf474c27670e2 100644
--- a/net/http/partial_data.cc
+++ b/net/http/partial_data.cc
@@ -274,7 +274,7 @@ bool PartialData::ResponseHeadersOK(const HttpResponseHeaders* headers) {
}
int64_t start, end, total_length;
- if (!headers->GetContentRange(&start, &end, &total_length))
+ if (!headers->GetContentRangeFor206(&start, &end, &total_length))
return false;
if (total_length <= 0)
return false;
« no previous file with comments | « net/http/http_util_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698