From c83c02cedd6b3f77fd11713ae37916e3f924c517 Mon Sep 17 00:00:00 2001 From: s3lph Date: Sun, 26 Sep 2021 18:50:02 +0200 Subject: [PATCH] Add missing PGP/MIME version header to publish response --- easywks/types.py | 1 + 1 file changed, 1 insertion(+) diff --git a/easywks/types.py b/easywks/types.py index ba76162..bffdaf9 100644 --- a/easywks/types.py +++ b/easywks/types.py @@ -218,6 +218,7 @@ Encrypt live everybody is. encrypted |= pgp_sign(self.domain, encrypted) payload = MIMEApplication(str(encrypted), _subtype='octet-stream') mpenc = MIMEApplication(payload.as_string(policy=default), _subtype='pgp-encrypted') + mpenc['Version'] = '1' email = MIMEMultipart(_subtype='encrypted', _subparts=[mpenc], policy=default, protocol='application/pgp-encrypted') email['Subject'] = 'Your key has been published'