1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

Remove any chance of block args stomping on locals here

This commit is contained in:
Ryan Tomayko 2009-03-24 01:31:21 -07:00
parent 22e1d8c5a2
commit d5f2028d5a

View file

@ -796,7 +796,7 @@ module Sinatra
builder.use Rack::Session::Cookie if sessions? && !test? builder.use Rack::Session::Cookie if sessions? && !test?
builder.use Rack::CommonLogger if logging? builder.use Rack::CommonLogger if logging?
builder.use Rack::MethodOverride if methodoverride? builder.use Rack::MethodOverride if methodoverride?
@middleware.each { |c, args, bk| builder.use(c, *args, &bk) } @middleware.each { |c,a,b| builder.use(c, *a, &b) }
builder.run super builder.run super
builder.to_app builder.to_app
end end