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.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/http/partial_data.cc b/net/http/partial_data.cc
index 0ef7f6b..f253dc1 100644
--- a/net/http/partial_data.cc
+++ b/net/http/partial_data.cc
@@ -48,9 +48,7 @@ void PartialData::RestoreHeaders(std::string* headers) const {
int64 end = byte_range_.IsSuffixByteRange() ?
byte_range_.suffix_length() : byte_range_.last_byte_position();
- headers->assign(extra_headers_);
- if (byte_range_.IsValid())
- AddRangeHeader(current_range_start_, end, headers);
+ AddRangeHeader(current_range_start_, end, headers);
}
int PartialData::PrepareCacheValidation(disk_cache::Entry* entry,