# File lib/rack/utils.rb, line 37
37:     def parse_query(qs, d = nil)
38:       params = {}
39: 
40:       (qs || '').split(d ? /[#{d}] */n : DEFAULT_SEP).each do |p|
41:         k, v = p.split('=', 2).map { |x| unescape(x) }
42:         if cur = params[k]
43:           if cur.class == Array
44:             params[k] << v
45:           else
46:             params[k] = [cur, v]
47:           end
48:         else
49:           params[k] = v
50:         end
51:       end