aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2021-05-12 15:52:59 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2021-05-12 15:52:59 -0400
commit4477398b0f0f9f46869407af824ef1e6acda58ca (patch)
treef329e0b315b55ae0b8b8ef2e48fed497c7f4b59d
parentafe86cd0a26f188f7039c2ae996c2d0c777ee93f (diff)
downloadb4-4477398b0f0f9f46869407af824ef1e6acda58ca.tar.gz
Fix DKIM check on headers that don't lowercase h
The h= field headers may not be lowercased, so make sure we handle that when looking if the date header is signed. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r--b4/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/b4/__init__.py b/b4/__init__.py
index 5a8466b..1c6d89b 100644
--- a/b4/__init__.py
+++ b/b4/__init__.py
@@ -988,7 +988,7 @@ class LoreMessage:
else:
# See if date is included in the h: field
sh = hdata.get('h')
- if 'date' in sh.split(':'):
+ if 'date' in sh.lower().split(':'):
signtime = self.date
self.msg._headers.append((hn, hval)) # noqa