Skip to content

Commit f68508c

Browse files
committed
由于部分 openssl 不兼容 故暂时跳过
1 parent 0b797f6 commit f68508c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/fir/util/ali_uploader.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ def put_file(url, file, headers, need_progress = true)
7070
t = Time.now
7171
http = Net::HTTP.new(hostname, 443)
7272
http.use_ssl = true
73+
# 根据环境变量配置SSL证书验证
74+
unless ENV['UPLOAD_VERIFY_SSL']
75+
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
76+
end
7377
req = Net::HTTP::Put.new(uri.request_uri, headers)
7478
req.content_length = io.size
7579
req.body_stream = io

lib/fir/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# encoding: utf-8
22

33
module FIR
4-
VERSION = "2.0.22"
4+
VERSION = "2.0.23"
55
end

0 commit comments

Comments
 (0)