lib/cmis/connection.rb in cmis-ruby-0.5.30 vs lib/cmis/connection.rb in cmis-ruby-0.5.31

- old
+ new

@@ -54,10 +54,12 @@ raise $!, msg_parts.join("\n"), $!.backtrace end def connection_options(options) adapter = (options[:adapter] || :net_http).to_sym - headers = { user_agent: "cmis-ruby/#{VERSION} [#{adapter}]" } + user_agent = "cmis-ruby/#{VERSION} [#{adapter}]" + user_agent += " #{options[:app_id]}" if options[:app_id] + headers = { user_agent: user_agent } headers.merge!(options[:headers]) if options[:headers] conn_opts = { headers: headers } conn_opts[:ssl] = options[:ssl] if options[:ssl]