lib/slack/connection.rb in slack-api-1.1.3 vs lib/slack/connection.rb in slack-api-1.1.4
- old
+ new
@@ -13,9 +13,12 @@
:url => endpoint,
:ssl => { :ca_path => ca_path, :ca_file => ca_file },
}
Faraday::Connection.new(options) do |connection|
+ Array(middlewares).each do |middleware|
+ connection.use middleware
+ end
connection.use Faraday::Request::Multipart
connection.use Faraday::Request::UrlEncoded
connection.use Faraday::Response::ParseJson
connection.use FaradayMiddleware::RaiseHttpException
connection.adapter(adapter)