mirror of https://github.com/status-im/consul.git
website: fix download finder
This commit is contained in:
parent
655795e9d6
commit
d24369a31d
|
@ -6,7 +6,7 @@ $consul_os = []
|
||||||
if ENV["CONSUL_VERSION"]
|
if ENV["CONSUL_VERSION"]
|
||||||
raise "BINTRAY_API_KEY must be set." if !ENV["BINTRAY_API_KEY"]
|
raise "BINTRAY_API_KEY must be set." if !ENV["BINTRAY_API_KEY"]
|
||||||
http = Net::HTTP.new("dl.bintray.com", 80)
|
http = Net::HTTP.new("dl.bintray.com", 80)
|
||||||
req = Net::HTTP::Get.new("/mitchellh/consul")
|
req = Net::HTTP::Get.new("/mitchellh/consul/")
|
||||||
req.basic_auth "mitchellh", ENV["BINTRAY_API_KEY"]
|
req.basic_auth "mitchellh", ENV["BINTRAY_API_KEY"]
|
||||||
response = http.request(req)
|
response = http.request(req)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue