aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/base.rb
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2008-10-16 22:20:32 +0200
committerPratik Naik <pratiknaik@gmail.com>2008-10-16 22:20:32 +0200
commit0242d817035e60357e559af0e9441a1f24a764e4 (patch)
tree1efa579fc261e55f76bacfa9818eb4a649d68294 /actionpack/lib/action_controller/base.rb
parent7e2777348b88bf096ebc51e364554af19d7bcc55 (diff)
parent9cb5400871b660e2c6d1654346650f07bb52a0c0 (diff)
downloadrails-0242d817035e60357e559af0e9441a1f24a764e4.tar.gz
rails-0242d817035e60357e559af0e9441a1f24a764e4.tar.bz2
rails-0242d817035e60357e559af0e9441a1f24a764e4.zip
Merge with mainstream rails
Diffstat (limited to 'actionpack/lib/action_controller/base.rb')
-rw-r--r--actionpack/lib/action_controller/base.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb
index 413f6d48e5..3ede681253 100644
--- a/actionpack/lib/action_controller/base.rb
+++ b/actionpack/lib/action_controller/base.rb
@@ -969,7 +969,9 @@ module ActionController #:nodoc:
# If-Modified-Since request header is <= last modified.
def last_modified!(utc_time)
response.last_modified= utc_time
- head(:not_modified) if response.last_modified == request.if_modified_since
+ if request.if_modified_since && request.if_modified_since <= utc_time
+ head(:not_modified)
+ end
end
# Sets the ETag response header. Returns 304 Not Modified if the