mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
d853ba1978
commit
15924d79b1
|
@ -102,12 +102,7 @@ def createSignedHeader(privateKeyPem: str, nickname: str,
|
||||||
"""Note that the domain is the destination, not the sender
|
"""Note that the domain is the destination, not the sender
|
||||||
"""
|
"""
|
||||||
contentType = 'application/activity+json'
|
contentType = 'application/activity+json'
|
||||||
headerDomain = toDomain
|
headerDomain = getFullDomain(toDomain, toPort)
|
||||||
|
|
||||||
if toPort:
|
|
||||||
if toPort != 80 and toPort != 443:
|
|
||||||
if ':' not in headerDomain:
|
|
||||||
headerDomain = headerDomain + ':' + str(toPort)
|
|
||||||
|
|
||||||
dateStr = strftime("%a, %d %b %Y %H:%M:%S %Z", gmtime())
|
dateStr = strftime("%a, %d %b %Y %H:%M:%S %Z", gmtime())
|
||||||
if not withDigest:
|
if not withDigest:
|
||||||
|
|
Loading…
Reference in New Issue