lib/vagrant-skytap/api/client.rb in vagrant-skytap-0.2.6 vs lib/vagrant-skytap/api/client.rb in vagrant-skytap-0.2.7

- old
+ new

@@ -127,15 +127,19 @@ errors if errors.present? end private + def user_agent_string + "Vagrant-Skytap/#{VERSION} Vagrant/#{Vagrant::VERSION}" + end def default_headers { 'Authorization' => auth_header, 'Content-Type' => 'application/json', - 'Accept' => 'application/json' + 'Accept' => 'application/json', + 'User-Agent' => user_agent_string, } end def auth_header "Basic #{Base64.encode64(config.username + ":" +