Switch Faraday adapter to typhoeus

It uses curl which has less problems connecting
to a missconfigured IPv6 host (falls back to v4)
This commit is contained in:
Jonne Haß 2014-09-06 23:15:44 +02:00
parent c225bb17ce
commit 9c88fde821
2 changed files with 8 additions and 1 deletions

View file

@ -1,6 +1,13 @@
# Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
# Use net_http in test, that's better supported by webmock
unless Rails.env.test?
require 'typhoeus/adapters/faraday'
Faraday.default_adapter = :typhoeus
end
options = {
request: {
timeout: 25