Skip to content

Commit c123c4c

Browse files
committed
Fix the no-proxy case
1 parent a497fb1 commit c123c4c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/gist.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ module Gist
3030
PROXY = URI(ENV['HTTPS_PROXY'])
3131
elsif ENV['HTTP_PROXY']
3232
PROXY = URI(ENV['HTTP_PROXY'])
33+
else
34+
PROXY = nil
3335
end
3436
PROXY_HOST = PROXY ? PROXY.host : nil
3537
PROXY_PORT = PROXY ? PROXY.port : nil

0 commit comments

Comments
 (0)