Skip to content

Commit

Permalink
Add http auth support to the PUT request
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Stiegmann (stieg) committed Dec 17, 2014
1 parent cb1ed2f commit ec6eceb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/chronos-sync.rb
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ def load_job(fn, lines, prefix, typeName)
req = Net::HTTP::Put.new(uri.request_uri)
req.body = JSON.generate(job)
req.content_type = 'application/json'
req.basic_auth options.http_auth_user, options.http_auth_pass if (defined? options.http_auth_user)

puts "Sending PUT for `#{job['name']}` to #{uri.request_uri}"

Expand Down

0 comments on commit ec6eceb

Please sign in to comment.