lib/hyperkit/default.rb in hyperkit-1.0.0 vs lib/hyperkit/default.rb in hyperkit-1.0.2
- old
+ new
@@ -44,10 +44,10 @@
MEDIA_TYPE = 'application/json'
# In Faraday 0.9, Faraday::Builder was renamed to Faraday::RackBuilder
RACK_BUILDER_CLASS = defined?(Faraday::RackBuilder) ? Faraday::RackBuilder : Faraday::Builder
- # Default Faraday middleware stack
+ # Default Faraday middleware stack
MIDDLEWARE = RACK_BUILDER_CLASS.new do |builder|
builder.use Hyperkit::Middleware::FollowRedirects
builder.use Hyperkit::Response::RaiseError
builder.adapter Faraday.default_adapter
end