diff --git a/lib/rack/sendfile.rb b/lib/rack/sendfile.rb index 45f0a8c36..9c6e0c42f 100644 --- a/lib/rack/sendfile.rb +++ b/lib/rack/sendfile.rb @@ -111,7 +111,7 @@ def initialize(app, variation = nil, mappings = []) end def call(env) - status, headers, body = response = @app.call(env) + _, headers, body = response = @app.call(env) if body.respond_to?(:to_path) case type = variation(env) diff --git a/lib/rack/version.rb b/lib/rack/version.rb index d253eec32..e634f23ae 100644 --- a/lib/rack/version.rb +++ b/lib/rack/version.rb @@ -25,7 +25,7 @@ def self.version VERSION end - RELEASE = "3.0.7" + RELEASE = "3.0.8" # Return the Rack release as a dotted string. def self.release diff --git a/test/spec_lint.rb b/test/spec_lint.rb index 081ff367b..398c7719c 100755 --- a/test/spec_lint.rb +++ b/test/spec_lint.rb @@ -478,7 +478,7 @@ def body.each; end def body.to_path; __FILE__ end app = lambda { |env| [200, {}, body] } - status, headers, body = Rack::Lint.new(app).call(env({})) + body = Rack::Lint.new(app).call(env({}))[2] body.must_respond_to(:to_path) body.to_path.must_equal __FILE__ end