lib/rack/auth/digest/nonce.rb in rack-1.4.1 vs lib/rack/auth/digest/nonce.rb in rack-1.4.2

- old
+ new

@@ -36,10 +36,10 @@ def valid? digest == @given_digest end def stale? - !self.class.time_limit.nil? && (@timestamp - Time.now.to_i) < self.class.time_limit + !self.class.time_limit.nil? && (Time.now.to_i - @timestamp) > self.class.time_limit end def fresh? !stale? end