From d9c8dc46c2fb51541fc702da4e2f6d02b86564d9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 23 Aug 2019 12:39:16 +0100 Subject: [PATCH] Tidying --- httpsig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpsig.py b/httpsig.py index 4e4745da..ddf3655f 100644 --- a/httpsig.py +++ b/httpsig.py @@ -125,8 +125,8 @@ def verifyRecentSignature(signedDateStr: str) -> bool: """ currDate=datetime.datetime.utcnow() signedDate=datetime.datetime.strptime(signedDateStr,"%a, %d %b %Y %H:%M:%S %Z") - # 12 hours tollerance timeDiffSec=(currDate-signedDate).seconds + # 12 hours tollerance if timeDiffSec > 43200: print('WARN: Header signed too long ago: '+signedDateStr) print(str(timeDiffSec/(60*60))+' hours')