From 89f1e8d6e33bb9e7b6f7d1680f67a3ceecde1925 Mon Sep 17 00:00:00 2001 From: SouthFox Date: Wed, 29 Mar 2023 01:51:15 +0800 Subject: [PATCH] fix/headers date RFC 2616 compliant --- app/httpsig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/httpsig.py b/app/httpsig.py index cbeab9a..0e67281 100644 --- a/app/httpsig.py +++ b/app/httpsig.py @@ -96,7 +96,7 @@ class HTTPXSigAuth(httpx.Auth): bh.update(r.content) bodydigest = "SHA-256=" + base64.b64encode(bh.digest()).decode("utf-8") - date = datetime.utcnow().strftime("%Y-%m-%d %H:%M:%S GMT") + date = datetime.utcnow().strftime("%a, %d %b %Y %H:%M:%S GMT") r.headers["Date"] = date sigheaders = {} if bodydigest: