lib/ably/rest/middleware/parse_message_pack.rb in ably-1.2.0 vs lib/ably/rest/middleware/parse_message_pack.rb in ably-1.2.1
- old
+ new
@@ -2,10 +2,10 @@
require 'msgpack'
module Ably
module Rest
module Middleware
- class ParseMessagePack < Faraday::Response::Middleware
+ class ParseMessagePack < Faraday::Middleware
def on_complete(env)
if env.response_headers['Content-Type'] == 'application/x-msgpack'
env.body = parse(env.body) unless env.response_headers['Ably-Middleware-Parsed'] == true
env.response_headers['Ably-Middleware-Parsed'] = true
end