lib/angelo/params_parser.rb in angelo-0.2.2 vs lib/angelo/params_parser.rb in angelo-0.2.3

- old
+ new

@@ -10,10 +10,9 @@ SEMICOLON = ';' EQUALS = '=' AMPERSAND = '&' def parse_formencoded str - raise FormEncodingError unless str.empty? or str.index EQUALS str.split(AMPERSAND).reduce(Responder.symhash) do |p, kv| key, value = kv.split(EQUALS).map {|s| CGI.unescape s} p[key] = value p end