mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
ETag: use body instead of @body since the method will always return a string
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user