Skip to content

Commit

Permalink
Remove the query string from PATH_INFO.
Browse files Browse the repository at this point in the history
  • Loading branch information
benburkert committed Nov 9, 2010
1 parent 92f8b46 commit 77f8e39
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/rack/client/adapter/base.rb
Expand Up @@ -35,7 +35,6 @@ def build_env(request_method, url, headers = {}, body = nil)
uri = URI.parse(url)

path_info = uri.path.empty? ? '/' : uri.path
path_info += '?' + uri.query unless uri.query.nil? || uri.query.empty?

env.update 'PATH_INFO' => path_info
env.update 'REQUEST_URI' => uri.to_s
Expand Down

0 comments on commit 77f8e39

Please sign in to comment.