diff options
Diffstat (limited to 'wsgitools')
-rwxr-xr-x | wsgitools/digest.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wsgitools/digest.py b/wsgitools/digest.py index f6792b9..52cdcee 100755 --- a/wsgitools/digest.py +++ b/wsgitools/digest.py @@ -119,7 +119,8 @@ def format_time(seconds): @type seconds: float @rtype: str """ - return "%13X" % int(seconds * 1000000) + # the overflow will happen about 2112 + return "%013X" % int(seconds * 1000000) __all__.append("StatelessNonceStore") class StatelessNonceStore(NonceStoreBase): |