Skip to content

Commit

Permalink
Fix bad URI errors.
Browse files Browse the repository at this point in the history
Previous code override the `path` variable, but we should refer
to the `location.path` instead.
  • Loading branch information
kaspth committed Nov 23, 2016
1 parent 506b697 commit b3fd17a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_dispatch/testing/integration.rb
Expand Up @@ -290,7 +290,7 @@ def process(method, path, params: nil, headers: nil, env: nil, xhr: false, as: n
url_host += ":#{location.port}" if default != location.port
host! url_host
end
path = location.query ? "#{path}?#{location.query}" : path
path = location.query ? "#{location.path}?#{location.query}" : location.path
end

hostname, port = host.split(':')
Expand Down

0 comments on commit b3fd17a

Please sign in to comment.