lib/rack/conditionalget.rb in rack-1.3.2 vs lib/rack/conditionalget.rb in rack-1.3.3

- old
+ new

@@ -54,9 +54,10 @@ etag = headers['ETag'] and etag == none_match end def modified_since?(modified_since, headers) last_modified = to_rfc2822(headers['Last-Modified']) and + modified_since and modified_since >= last_modified end def to_rfc2822(since) Time.rfc2822(since) rescue nil