lib/ringcentral_sdk/rest/client.rb in ringcentral_sdk-1.2.1 vs lib/ringcentral_sdk/rest/client.rb in ringcentral_sdk-1.2.2
- old
+ new
@@ -137,11 +137,12 @@
@token = token
@http = Faraday.new(url: api_version_url()) do |conn|
conn.request :oauth2_refresh, @token
- conn.request :json
+ conn.request :multipart
conn.request :url_encoded
+ conn.request :json
conn.headers['User-Agent'] = @user_agent
if @instance_headers.is_a? Hash
@instance_headers.each do |k,v|
conn.headers[k] = v
end