merge-requests/30/head
Bob Mottram 2020-12-16 11:42:11 +00:00
parent d853ba1978
commit 15924d79b1
1 changed files with 1 additions and 6 deletions

View File

@ -102,12 +102,7 @@ def createSignedHeader(privateKeyPem: str, nickname: str,
"""Note that the domain is the destination, not the sender
"""
contentType = 'application/activity+json'
headerDomain = toDomain
if toPort:
if toPort != 80 and toPort != 443:
if ':' not in headerDomain:
headerDomain = headerDomain + ':' + str(toPort)
headerDomain = getFullDomain(toDomain, toPort)
dateStr = strftime("%a, %d %b %Y %H:%M:%S %Z", gmtime())
if not withDigest: