lib/ably/rest/client.rb in ably-0.8.12 vs lib/ably/rest/client.rb in ably-0.8.13

- old
+ new

@@ -350,9 +350,11 @@ connection(use_fallback: use_fallback).send(method, path, params) do |request| unless options[:send_auth_header] == false request.headers[:authorization] = auth.auth_header end + request.headers['X-Ably-Version'] = Ably::PROTOCOL_VERSION + request.headers['X-Ably-Lib'] = Ably::LIB_VERSION_ID end rescue Faraday::TimeoutError, Faraday::ClientError, Ably::Exceptions::ServerError => error time_passed = Time.now - requested_at if can_fallback_to_alternate_ably_host? && retry_count < max_retry_count && time_passed <= max_retry_duration