mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-24 06:59:52 +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,7 +309,10 @@ class DefaultRecordIter(object):
|
|||||||
else:
|
else:
|
||||||
entry = ArchiveIndexEntry()
|
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
|
return entry
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user