potential fix for invalid query string construction

This commit is contained in:
John Bintz 2010-06-01 14:10:39 -04:00
parent 8f637e6785
commit 0856d8d405

View File

@ -110,7 +110,7 @@ module Webrat
when :rack, :sinatra when :rack, :sinatra
Rack::Utils.parse_nested_query(query_string) Rack::Utils.parse_nested_query(query_string)
else else
query_string.split('&').map {|query| { query.split('=').first => query.split('=').last }} Hash[query_string.split('&').map {|query| [ query.split('=').first, query.split('=').last ]}]
end end
end end