Browse files

Fix the no-proxy case

  • Loading branch information...
1 parent a497fb1 commit c123c4ccfd32cb53076897979875607098e77653 @indirect indirect committed May 3, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/gist.rb
View
2 lib/gist.rb
@@ -30,6 +30,8 @@ module Gist
PROXY = URI(ENV['HTTPS_PROXY'])
elsif ENV['HTTP_PROXY']
PROXY = URI(ENV['HTTP_PROXY'])
+ else
+ PROXY = nil
end
PROXY_HOST = PROXY ? PROXY.host : nil
PROXY_PORT = PROXY ? PROXY.port : nil

0 comments on commit c123c4c

Please sign in to comment.