lib/goauth2/client.rb in goauth2-0.0.5 vs lib/goauth2/client.rb in goauth2-0.0.6

- old
+ new

@@ -72,15 +72,15 @@ end return @access_token end def _get_jsonc(url, params={}) - params.merge! :params => {'alt' => 'jsonc'} - res = _get(url, params) + ps = {'alt' => 'jsonc'}.merge!(params) + res = _get(url, :params => ps) end def _get_json(url, params={}) - params.merge! :params => {'alt' => 'json'} + ps = {'alt' => 'json'}.merge!(params) res = _get(url, params) end def _get(url, params={}) res = access_token.get(url, params)