lib/opentok/client.rb in opentok-2.3.2 vs lib/opentok/client.rb in opentok-2.3.3

- old
+ new

@@ -12,14 +12,14 @@ open_timeout 2 # Set HTTParty default timeout (open/read) to 2 seconds # TODO: expose a setting for http debugging for developers # debug_output $stdout - def initialize(api_key, api_secret, api_url) + def initialize(api_key, api_secret, api_url, ua_addendum="") self.class.base_uri api_url self.class.headers({ "X-TB-PARTNER-AUTH" => "#{api_key}:#{api_secret}", - "User-Agent" => "OpenTok-Ruby-SDK/#{VERSION}" + "User-Agent" => "OpenTok-Ruby-SDK/#{VERSION}" + (ua_addendum ? " #{ua_addendum}" : "") }) @api_key = api_key end def create_session(opts)