lib/submodules/ably-ruby/lib/ably/rest/middleware/encoder.rb in ably-rest-1.2.0 vs lib/submodules/ably-ruby/lib/ably/rest/middleware/encoder.rb in ably-rest-1.2.1

- old
+ new

@@ -3,10 +3,10 @@ module Ably module Rest module Middleware # Encode the body of the message according to the mime type - class Encoder < ::Faraday::Response::Middleware + class Encoder < Faraday::Middleware CONTENT_TYPE = 'Content-Type'.freeze unless defined? CONTENT_TYPE def call(env) encode env if env.body @app.call env