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.
@@ -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)
@@ -1,5 +1,5 @@
1
1
  module Knife
2
2
  module Setup
3
- VERSION = "1.0.3"
3
+ VERSION = "1.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-setup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: