summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jacob <adam@opscode.com>2010-03-02 02:45:35 -0800
committerAdam Jacob <adam@opscode.com>2010-03-02 02:45:35 -0800
commit1eba22e88c2adc9b49fe406a68e9e79105f5ca42 (patch)
tree1c9936dc8f15923292b3de39233c77269aad0292
parentb165dedf145c2c27168f8cdc87bdd61336c6a02a (diff)
downloadchef-1eba22e88c2adc9b49fe406a68e9e79105f5ca42.tar.gz
Adding X-Chef-Version to the cookbook uploader
-rw-r--r--chef/lib/chef/streaming_cookbook_uploader.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/chef/lib/chef/streaming_cookbook_uploader.rb b/chef/lib/chef/streaming_cookbook_uploader.rb
index 5bacaff64a..e67aebb811 100644
--- a/chef/lib/chef/streaming_cookbook_uploader.rb
+++ b/chef/lib/chef/streaming_cookbook_uploader.rb
@@ -7,7 +7,7 @@ require 'openssl'
class Chef
class StreamingCookbookUploader
- DefaultHeaders = { 'accept' => 'application/json' }
+ DefaultHeaders = { 'accept' => 'application/json', 'x-chef-version' => ::Chef::VERSION }
class << self