lib/desk/connection.rb in desk-1.0.9 vs lib/desk/connection.rb in desk-1.0.10
- old
+ new
@@ -13,10 +13,13 @@
options = {
:headers => {'Accept' => "application/#{format}", 'User-Agent' => user_agent},
:proxy => proxy,
:ssl => {:verify => false, :version => 'SSLv23'},
:url => api_endpoint,
+ :request => {},
}
+
+ options[:request][:timeout] = timeout if timeout
Faraday.new(options) do |builder|
builder.use Faraday::Request::MultipartWithFile
if authenticated?
if auth_method == Desk::Authentication::Methods::BASIC