potential fix for invalid query string construction
This commit is contained in:
parent
8f637e6785
commit
0856d8d405
|
@ -110,7 +110,7 @@ module Webrat
|
|||
when :rack, :sinatra
|
||||
Rack::Utils.parse_nested_query(query_string)
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue