lib/mixlib/install/util.rb in mixlib-install-3.11.24 vs lib/mixlib/install/util.rb in mixlib-install-3.11.26

- old
+ new

@@ -124,10 +124,10 @@ # Build the user-agent string # # @param name [Array] headers # @return [String] generated user-agent string def user_agent_string(headers) - require "mixlib/install/version" + require_relative "version" user_agents = %W{mixlib-install/#{Mixlib::Install::VERSION}} user_agents << headers # Ensure that if the default user agent is aleady set it doesn't get duplicated user_agents.flatten.compact.uniq.join(" ") end