lib/tumblr/request/oauth.rb in tumblr_client-0.6.7 vs lib/tumblr/request/oauth.rb in tumblr_client-0.6.8
- old
+ new
@@ -7,10 +7,10 @@
module Tumblr
module Request
class TumblrOAuth < Faraday::Middleware
def call(env)
if env[:method].to_s == "get"
- params = env[:url].query_values || {}
+ params = Faraday::Utils.parse_query(env[:url].query) || {}
url = "#{env[:url].scheme}://#{env[:url].host}#{env[:url].path}"
else
params = env[:body] || {}
url = env[:url]
end