summaryrefslogtreecommitdiffstats
path: root/net/http/partial_data.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/http/partial_data.cc')
-rw-r--r--net/http/partial_data.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/http/partial_data.cc b/net/http/partial_data.cc
index 57985e7..128c5b7 100644
--- a/net/http/partial_data.cc
+++ b/net/http/partial_data.cc
@@ -193,7 +193,7 @@ bool PartialData::ResponseHeadersOK(const HttpResponseHeaders* headers) {
return false;
int64 content_length = headers->GetContentLength();
- if (content_length != end - start + 1)
+ if (content_length < 0 || content_length != end - start + 1)
return false;
if (!resource_size_) {