Fix byte casting issues & typos
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
UNRELEASED Version 0.6.2
|
UNRELEASED Version 0.6.2
|
||||||
- Fixed python3.4 string interpolation issue
|
- Fixed python3.4 string interpolation issue
|
||||||
|
- Fix some byte casting issues & typos
|
||||||
|
|
||||||
2017-01-27 Version 0.6.1
|
2017-01-27 Version 0.6.1
|
||||||
- Fixed python3 dns lookup issue
|
- Fixed python3 dns lookup issue
|
||||||
|
|||||||
+3
-3
@@ -392,7 +392,7 @@ class DomainSigner(object):
|
|||||||
b'mime-version', b'content-type', b'content-transfer-encoding',
|
b'mime-version', b'content-type', b'content-transfer-encoding',
|
||||||
b'content-id', b'content-description', b'resent-date', b'resent-from',
|
b'content-id', b'content-description', b'resent-date', b'resent-from',
|
||||||
b'resent-sender', b'resent-to', b'resent-cc', b'resent-message-id',
|
b'resent-sender', b'resent-to', b'resent-cc', b'resent-message-id',
|
||||||
b'in-reply-to', 'references', b'list-id', b'list-help', b'list-unsubscribe',
|
b'in-reply-to', b'references', b'list-id', b'list-help', b'list-unsubscribe',
|
||||||
b'list-subscribe', b'list-post', b'list-owner', b'list-archive'
|
b'list-subscribe', b'list-post', b'list-owner', b'list-archive'
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -656,7 +656,7 @@ class DKIM(DomainSigner):
|
|||||||
(b'c', canon_policy.to_c_value()),
|
(b'c', canon_policy.to_c_value()),
|
||||||
(b'd', domain),
|
(b'd', domain),
|
||||||
(b'i', identity or b"@"+domain),
|
(b'i', identity or b"@"+domain),
|
||||||
length and (b'l', len(body)),
|
length and (b'l', str(len(body)).encode('ascii')),
|
||||||
(b'q', b"dns/txt"),
|
(b'q', b"dns/txt"),
|
||||||
(b's', selector),
|
(b's', selector),
|
||||||
(b't', str(int(time.time())).encode('ascii')),
|
(b't', str(int(time.time())).encode('ascii')),
|
||||||
@@ -810,7 +810,7 @@ class ARC(DomainSigner):
|
|||||||
arc_headers = [y for x,y in arc_headers_w_instance]
|
arc_headers = [y for x,y in arc_headers_w_instance]
|
||||||
|
|
||||||
# Compute ARC-Authentication-Results
|
# Compute ARC-Authentication-Results
|
||||||
aar_value = (b"i=%d; " % instance) + auth_results
|
aar_value = ("i=%d; " % instance).encode('utf-8') + auth_results
|
||||||
if aar_value[-1] != b'\n': aar_value += b'\r\n'
|
if aar_value[-1] != b'\n': aar_value += b'\r\n'
|
||||||
|
|
||||||
new_arc_set.append(b"ARC-Authentication-Results: " + aar_value)
|
new_arc_set.append(b"ARC-Authentication-Results: " + aar_value)
|
||||||
|
|||||||
Reference in New Issue
Block a user