summaryrefslogtreecommitdiff
path: root/lib/chef/server_api.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/server_api.rb')
-rw-r--r--lib/chef/server_api.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/chef/server_api.rb b/lib/chef/server_api.rb
index 3bfceacdd7..6b7d7daced 100644
--- a/lib/chef/server_api.rb
+++ b/lib/chef/server_api.rb
@@ -27,7 +27,6 @@ require "chef/http/validate_content_length"
class Chef
class ServerAPI < Chef::HTTP
-
def initialize(url = Chef::Config[:chef_server_url], options = {})
options[:client_name] ||= Chef::Config[:node_name]
options[:signing_key_filename] ||= Chef::Config[:client_key]
@@ -57,7 +56,7 @@ class Chef
# Makes an HTTP request to +path+ with the given +method+, +headers+, and
# +data+ (if applicable). Does not apply any middleware, besides that
# needed for Authentication.
- def raw_request(method, path, headers={}, data=false)
+ def raw_request(method, path, headers = {}, data = false)
url = create_url(path)
method, url, headers, data = Chef::HTTP::Authenticator.new(options).handle_request(method, url, headers, data)
method, url, headers, data = Chef::HTTP::RemoteRequestID.new(options).handle_request(method, url, headers, data)