diff options
Diffstat (limited to 'lib/rack/etag.rb')
-rw-r--r-- | lib/rack/etag.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rack/etag.rb b/lib/rack/etag.rb index 7f90532b..fa78b472 100644 --- a/lib/rack/etag.rb +++ b/lib/rack/etag.rb @@ -26,7 +26,7 @@ module Rack end def call(env) - status, headers, body = @app.call(env) + status, headers, body = response = @app.call(env) if etag_status?(status) && body.respond_to?(:to_ary) && !skip_caching?(headers) body = body.to_ary @@ -42,7 +42,7 @@ module Rack end end - [status, headers, body] + response end private |