we want to save all captures to the big "captures"

table, even if we don't want to dedup against them
This commit is contained in:
Noah Levitt 2018-05-15 15:33:52 -07:00
parent af863c6dba
commit e23af32e94
2 changed files with 2 additions and 4 deletions

View File

@ -40,7 +40,7 @@ except:
setuptools.setup(
name='warcprox',
version='2.4b2.dev171',
version='2.4b2.dev172',
description='WARC writing MITM HTTP/S proxy',
url='https://github.com/internetarchive/warcprox',
author='Noah Levitt',

View File

@ -253,6 +253,4 @@ class RethinkCapturesDedup(warcprox.dedup.DedupDb, DedupableMixin):
self.captures_db.close()
def notify(self, recorded_url, records):
if (records and records[0].type == b'response'
and self.should_dedup(recorded_url)):
self.captures_db.notify(recorded_url, records)
self.captures_db.notify(recorded_url, records)