- Fix API deprecation warning PR: 245066 Submitted by: Derek Schrock <dereks@lifeofadishwasher.com> Approved by: maintainer timeout (changlp@cs.nctu.edu.tw, 25 days), ehaupt (mentor) MFH: 2020Q2 (blanket) Changelog: https://github.com/defunkt/gist/releases/tag/v5.1.0
12 lines
443 B
Text
12 lines
443 B
Text
--- build/gist.orig 2020-02-05 20:01:45 UTC
|
|
+++ build/gist
|
|
@@ -1713,7 +1713,8 @@ module Gist
|
|
end
|
|
if uri.scheme == "https"
|
|
connection.use_ssl = true
|
|
- connection.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
|
+ connection.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
|
+ connection.ca_file = "%%LOCALBASE%%/share/certs/ca-root-nss.crt"
|
|
end
|
|
connection.open_timeout = 10
|
|
connection.read_timeout = 10
|