summaryrefslogtreecommitdiff
path: root/lib/chef_zero/rest_request.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef_zero/rest_request.rb')
-rw-r--r--lib/chef_zero/rest_request.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/chef_zero/rest_request.rb b/lib/chef_zero/rest_request.rb
index e79af7f..ea96110 100644
--- a/lib/chef_zero/rest_request.rb
+++ b/lib/chef_zero/rest_request.rb
@@ -18,6 +18,10 @@ module ChefZero
@base_uri = value
end
+ def api_version
+ @env['HTTP_X_OPS_SERVER_API_VERSION']
+ end
+
def requestor
@env['HTTP_X_OPS_USERID']
end