Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
Fix logic for digest nonce invalidation.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrusdaboo committed Jul 2, 2015
1 parent dd7d9be commit eee6dee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/request.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def gethttpdigestauth(self, si, wwwauthorize=None):
user = [self.user, si.user][self.user == ""] user = [self.user, si.user][self.user == ""]
pswd = [self.pswd, si.pswd][self.pswd == ""] pswd = [self.pswd, si.pswd][self.pswd == ""]
details = None details = None
if user in self.manager.digestCache and self.manager.digestCache[user]["max-nonce-time"] < time.time(): if user in self.manager.digestCache and self.manager.digestCache[user]["max-nonce-time"] > time.time():
details = self.manager.digestCache[user] details = self.manager.digestCache[user]
else: else:
# Redo digest auth from scratch to get a new nonce etc # Redo digest auth from scratch to get a new nonce etc
Expand Down

0 comments on commit eee6dee

Please sign in to comment.