lib/lookout/rack/utils/subroute.rb in lookout-rack-utils-1.6.0 vs lib/lookout/rack/utils/subroute.rb in lookout-rack-utils-1.7.1
- old
+ new
@@ -13,10 +13,10 @@
raise ArgumentError, "Invalid http method: #{http_verb}" unless HTTP_METHODS.include?(http_verb)
# modify rack environment using Rack::Request- store passed in key/value
# pairs into hash associated with the parameters of the current http verb
- options.each { |k,v| subserver.request.send(http_verb)[k] = v }
+ options.each { |k,v| subserver.request.update_param(k, v) }
# Invoking Sinatra::Base#call! on our duplicated app instance. Sinatra's
# call will dup the app instance and then call!, so skip Sinatra's dup
# since we've done that here.
subcode, subheaders, body = subserver.call!(env.merge(request_opts))
return [subcode, body.first]