Skip to content

Commit

Permalink
Merge pull request carlhuda#445 from aktagon/patch-1
Browse files Browse the repository at this point in the history
Support for HTTP proxies. Fixes rake mustache:install "Connection timed out - connect(2)".
  • Loading branch information
kalbasit committed May 16, 2012
2 parents d5cf448 + d9f9af1 commit d701f9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion janus/ruby/janus/plugins.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def install_vim_plugin(group, name, &block)
# @param [String] url
# @param [String] path
def download_and_save_file(url, path)
open_and_save_file(path, open(url).read)
proxy = ENV['http_proxy'] || ENV['HTTP_PROXY']
open_and_save_file(path, open(url, :proxy => proxy).read)
end

# Open and save file
Expand Down

0 comments on commit d701f9b

Please sign in to comment.