summary refs log tree commit
path: root/lib/rack/content_type.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rack/content_type.rb')
-rw-r--r--lib/rack/content_type.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rack/content_type.rb b/lib/rack/content_type.rb
index 58c734a3..19f07824 100644
--- a/lib/rack/content_type.rb
+++ b/lib/rack/content_type.rb
@@ -21,13 +21,13 @@ module Rack
     end
 
     def call(env)
-      status, headers, body = @app.call(env)
+      status, headers, _ = response = @app.call(env)
 
       unless STATUS_WITH_NO_ENTITY_BODY.key?(status.to_i)
         headers[CONTENT_TYPE] ||= @content_type
       end
 
-      [status, headers, body]
+      response
     end
   end
 end