summaryrefslogtreecommitdiffstats
path: root/net/http/http_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/http/http_util.cc')
-rw-r--r--net/http/http_util.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/http/http_util.cc b/net/http/http_util.cc
index 5ea46d0..2ca8f02 100644
--- a/net/http/http_util.cc
+++ b/net/http/http_util.cc
@@ -202,6 +202,12 @@ bool HttpUtil::ParseRanges(const std::string& headers,
if (ranges_specifier.empty())
return false;
+ return ParseRangeHeader(ranges_specifier, ranges);
+}
+
+// static
+bool HttpUtil::ParseRangeHeader(const std::string& ranges_specifier,
+ std::vector<HttpByteRange>* ranges) {
size_t equal_char_offset = ranges_specifier.find('=');
if (equal_char_offset == std::string::npos)
return false;