mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-28 00:25:21 +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:
parent
a0347a3c42
commit
8e51ddc544
@ -309,6 +309,9 @@ class DefaultRecordIter(object):
|
|||||||
else:
|
else:
|
||||||
entry = ArchiveIndexEntry()
|
entry = ArchiveIndexEntry()
|
||||||
|
|
||||||
|
# don't reuse when using append post
|
||||||
|
# entry may be cached
|
||||||
|
if not self.options.get('append_post'):
|
||||||
self.entry_cache[rec_type] = entry
|
self.entry_cache[rec_type] = entry
|
||||||
|
|
||||||
return entry
|
return entry
|
||||||
|
Loading…
x
Reference in New Issue
Block a user