ETag: use body instead of @body since the method will always return a string

This commit is contained in:
Jeremy Kemper
2010-06-27 23:42:13 -07:00
parent b2633f9f93
commit ec18719b81

View File

@@ -89,7 +89,7 @@ module ActionDispatch
if etag? || last_modified? || !@cache_control.empty?
set_conditional_cache_control!
elsif nonempty_ok_response?
self.etag = @body
self.etag = body
if request && request.etag_matches?(etag)
self.status = 304
@@ -137,4 +137,4 @@ module ActionDispatch
end
end
end
end
end