knife-setup 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/chef/knife/knife-setup.rb +1 -0
- data/lib/knife-setup/version.rb +1 -1
- metadata +1 -1
@@ -241,6 +241,7 @@ class Chef
|
|
241
241
|
body = JSON.generate(message)
|
242
242
|
uri = URI.parse(url)
|
243
243
|
request = Net::HTTP::Post.new(uri.request_uri)
|
244
|
+
http = Net::HTTP.new(uri.host, uri.port)
|
244
245
|
request.add_field('Content-Type', 'application/json-rpc')
|
245
246
|
request.body = body
|
246
247
|
response = http.request(request)
|
data/lib/knife-setup/version.rb
CHANGED