From ddd8146f60bf3583a687120f7a692ceb429f211b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 1 Sep 2021 21:55:54 +0100 Subject: [PATCH] Test with capitals --- httpsig.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/httpsig.py b/httpsig.py index 96fc2d338..415a8015b 100644 --- a/httpsig.py +++ b/httpsig.py @@ -201,10 +201,10 @@ def createSignedHeader(privateKeyPem: str, nickname: str, if not withDigest: contentType = 'application/activity+json, application/ld+json' headers = { - '(request-target)': f'get {path}', - 'host': headerDomain, - 'date': dateStr, - 'accept': contentType + '(request-target)': f'GET {path}', + 'Host': headerDomain, + 'Date': dateStr, + 'Accept': contentType } signatureHeader = \ signPostHeaders(dateStr, privateKeyPem, nickname,