1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00

archiveiterator: don't reuse entries when post-append, as they may be cached for merge -- can break if records do not alternate

request/response fixes #175
This commit is contained in:
Ilya Kreymer 2016-03-31 12:40:19 -07:00
parent a0347a3c42
commit 8e51ddc544

View File

@ -309,7 +309,10 @@ class DefaultRecordIter(object):
else:
entry = ArchiveIndexEntry()
self.entry_cache[rec_type] = entry
# don't reuse when using append post
# entry may be cached
if not self.options.get('append_post'):
self.entry_cache[rec_type] = entry
return entry