deletemessageheaders(): use passed list of headers to remove

... and not self.filterheaders.  With the current code this change
is no-op (since self.filterheaders is always passed as header_list),
but it is a bug in general.

Signed-off-by: Eygene Ryabinkin <rea@codelabs.ru>
This commit is contained in:
Abdo Roig-Maranges 2014-05-07 00:05:55 +02:00 committed by Eygene Ryabinkin
parent 5150de5514
commit 1300f2289b

View File

@ -506,7 +506,7 @@ next line\n
new_headers = []
for h in headers.split('\n'):
keep_it = True
for trim_h in self.filterheaders:
for trim_h in header_list:
if len(h) > len(trim_h) and h[0:len(trim_h)+1] == (trim_h + ":"):
keep_it = False
break