- Correct line separtor after AAR header field (LP: #2049018) - Thanks to Nikolay Vizovitin for the report and the fix

This commit is contained in:
Scott Kitterman
2024-06-23 17:16:44 -04:00
parent 9380655a6e
commit 71f5d118e6
2 changed files with 3 additions and 2 deletions
+1 -2
View File
@@ -1118,8 +1118,7 @@ class ARC(DomainSigner):
arc_headers = []
# Compute ARC-Authentication-Results
aar_value = ("i=%d; " % instance).encode('utf-8') + auth_results
if aar_value[-1] != b'\n': aar_value += b'\r\n'
aar_value = ("i=%d; " % instance).encode('utf-8') + auth_results.rstrip() + self.linesep
new_arc_set.append(b"ARC-Authentication-Results: " + aar_value)
self.headers.insert(0, (b"arc-authentication-results", aar_value))