Skip to content

symbolized keys #18

@ghazel

Description

@ghazel

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?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions