-
-
Notifications
You must be signed in to change notification settings - Fork 264
Closed
Description
The symbolization of keys is a bit weird. There are some TODOs noted in consumer.rb:
# symbolize keys
# TODO this could be considered unexpected behavior; symbols or not?
# TODO this also drops subsequent values from multi-valued keys
CGI.parse(response.body).inject({}) do |h,(k,v)|
h[k.strip.to_sym] = v.first
h[k.strip] = v.first
h
end
I noticed because access_token.params contains both types, which is quite odd. What's the plan here?