lib/twilio-ruby/http/http_client.rb in twilio-ruby-5.0.0.rc5 vs lib/twilio-ruby/http/http_client.rb in twilio-ruby-5.0.0.rc7
- old
+ new
@@ -10,9 +10,12 @@
@proxy_port = proxy_port
@proxy_user = proxy_user
@proxy_pass = proxy_pass
@ssl_ca_file = ssl_ca_file
@adapter = Faraday.default_adapter
+
+ # Set default params encoder
+ Faraday::Utils.default_params_encoder = Faraday::FlatParamsEncoder
end
def request(host, port, method, url, params={}, data={}, headers={}, auth=nil, timeout=nil)
@connection = Faraday.new(url: host + ":" + port.to_s, ssl: {verify: true}) do |f|
f.request :url_encoded