Method: Chef::HTTP::JSONOutput#handle_request
- Defined in:
- lib/chef/http/json_output.rb
#handle_request(method, url, headers = {}, data = false) ⇒ Object
37 38 39 40 41 42 43 |
# File 'lib/chef/http/json_output.rb', line 37 def handle_request(method, url, headers = {}, data = false) # Ideally this should always set Accept to application/json, but # Chef::REST is sometimes used to make non-JSON requests, so it sets # Accept to the desired value before middlewares get called. headers["Accept"] ||= "application/json" [method, url, headers, data] end |