Added support for custom header options in chef for the http_request

Opscode Chef Ticket
Resolved on Github

An example using a custom “Host” header property:

http_request "localhost_with_host_header" do
  url "localhost"
  message "my request"
  headers Hash[:Host => ""]

The new parameter is headers which takes a Hash and will add all values.to_s to the request header.

Interested in Cloud or Chef Trainings? Have a look at our Commandemy Trainings page. Need help migrating to the cloud? Check out Infralovers.

comments powered by Disqus
Blog Tags