faraday.rb 410 Bytes
Newer Older
danielgrippi's avatar
danielgrippi committed
1
#   Copyright (c) 2010-2011, Diaspora Inc.  This file is
2 3
#   licensed under the Affero General Public License version 3 or later.  See
#   the COPYRIGHT file.
Jonne Haß's avatar
Jonne Haß committed
4
options = {:timeout => 25}
5

6 7
options[:ssl] = {:ca_file => EnviromentConfiguration.ca_cert_file_location}
Faraday.default_connection = Faraday::Connection.new(options) do |b|
Raphael Sofaer's avatar
Raphael Sofaer committed
8 9 10
  b.use FaradayStack::FollowRedirects
  b.adapter Faraday.default_adapter
end