1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix 1.9. uggghhhhhh get it together @tenderlove 💣

This commit is contained in:
Aaron Patterson 2014-07-15 18:43:47 -07:00
parent 993ca82d70
commit 7880f39e1d

View file

@ -316,8 +316,8 @@ module ActionDispatch
routes.call(params)
end
def request_path_params(path, method:)
method ||= 'GET'
def request_path_params(path, options = {})
method = options[:method] || 'GET'
resp = send_request URI('http://localhost' + path), method.to_s.upcase, nil
status = resp.first
if status == 404