bytes optimization

This commit is contained in:
Stuart D. Gathman
2020-06-18 16:40:54 -04:00
parent 4c7c76fca4
commit 879e65bc31
4 changed files with 24 additions and 16 deletions
+1 -1
View File
@@ -183,7 +183,7 @@ class TestBase(object):
if rc != Milter.CONTINUE: return rc
# header
for h,val in msg.items():
rc = self.header(h,val)
rc = self.header_bytes(h,val.encode())
if rc != Milter.CONTINUE: return rc
# eoh
self._stage = Milter.M_EOH