lib/preservation/client.rb in preservation-client-5.1.0 vs lib/preservation/client.rb in preservation-client-5.1.1

- old
+ new

@@ -75,10 +75,10 @@ def token @token || raise(Error, 'auth token has not been configured') end def connection - @connection ||= Faraday.new(url) do |builder| + @connection ||= Faraday.new(url, request: { read_timeout: 300 }) do |builder| builder.use ErrorFaradayMiddleware builder.use Faraday::Request::UrlEncoded builder.use Faraday::Response::RaiseError # raise exceptions on 40x, 50x responses builder.adapter Faraday.default_adapter builder.headers[:user_agent] = user_agent