From 15924d79b17811d9259d0d5b5109e41232cf53f2 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 16 Dec 2020 11:42:11 +0000 Subject: [PATCH] Tidying --- httpsig.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/httpsig.py b/httpsig.py index 7d9865c9b..77873c801 100644 --- a/httpsig.py +++ b/httpsig.py @@ -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: