summaryrefslogtreecommitdiff
path: root/lib/chef/http/authenticator.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/http/authenticator.rb')
-rw-r--r--lib/chef/http/authenticator.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/chef/http/authenticator.rb b/lib/chef/http/authenticator.rb
index 4255f18cbd..4ec35add34 100644
--- a/lib/chef/http/authenticator.rb
+++ b/lib/chef/http/authenticator.rb
@@ -24,6 +24,8 @@ class Chef
class HTTP
class Authenticator
+ SERVER_API_VERSION = "0"
+
attr_reader :signing_key_filename
attr_reader :raw_key
attr_reader :attr_names
@@ -41,6 +43,7 @@ class Chef
def handle_request(method, url, headers={}, data=false)
headers.merge!(authentication_headers(method, url, data)) if sign_requests?
+ headers.merge!({'X-Ops-Server-API-Version' => SERVER_API_VERSION})
[method, url, headers, data]
end