Fix #2635, mitmdump does not apply filter to saved data. (#2636)

This commit is contained in:
Matthew Shao 2017-11-22 14:26:20 +11:00 committed by Maximilian Hils
parent 168c72a55f
commit 46901d1d55

View File

@ -42,7 +42,7 @@ class Save:
) )
else: else:
self.filt = None self.filt = None
if "save_stream_file" in updated: if "save_stream_file" in updated or "save_stream_filter" in updated:
if self.stream: if self.stream:
self.done() self.done()
if ctx.options.save_stream_file: if ctx.options.save_stream_file: