We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c123c4c commit 0ec104aCopy full SHA for 0ec104a
gist
@@ -80,7 +80,7 @@ module Gist
80
end
81
82
module Gist
83
- VERSION = Version = '2.0.3.pre'
+ VERSION = Version = '2.0.3'
84
85
require 'open-uri'
86
require 'net/https'
@@ -95,7 +95,13 @@ module Gist
95
GIST_URL = 'https://gist.github.com/%s.txt'
96
CREATE_URL = 'https://gist.github.com/gists'
97
98
- PROXY = ENV['HTTP_PROXY'] ? URI(ENV['HTTP_PROXY']) : nil
+ if ENV['HTTPS_PROXY']
99
+ PROXY = URI(ENV['HTTPS_PROXY'])
100
+ elsif ENV['HTTP_PROXY']
101
+ PROXY = URI(ENV['HTTP_PROXY'])
102
+ else
103
+ PROXY = nil
104
+ end
105
PROXY_HOST = PROXY ? PROXY.host : nil
106
PROXY_PORT = PROXY ? PROXY.port : nil
107
0 commit comments