lib/ably/rest/middleware/parse_json.rb in ably-1.2.0 vs lib/ably/rest/middleware/parse_json.rb in ably-1.2.1

- old
+ new

@@ -2,10 +2,10 @@ require 'json' module Ably module Rest module Middleware - class ParseJson < Faraday::Response::Middleware + class ParseJson < Faraday::Middleware def on_complete(env) if env.response_headers['Content-Type'] == 'application/json' env.body = parse(env.body) unless env.response_headers['Ably-Middleware-Parsed'] == true env.response_headers['Ably-Middleware-Parsed'] = true end