Skip to content

Commit 15c9a06

Browse files
committed
Support for proxy credentials in http_proxy
We don't really need this for Stackato, as http_proxy right now always points to the polipo proxy on the host, but it doesn't hurt to make the code generic. Ref http://bugs.activestate.com/show_bug.cgi?id=102823
1 parent 45f73f7 commit 15c9a06

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/java_buildpack/util/cache/download_cache.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def issue_http_request(request, rich_uri, &block)
179179
proxy = URI.parse(ENV['http_proxy']||"")
180180
end
181181
@logger.debug { "HTTP.start(#{start_parameters(rich_uri)})" }
182-
Net::HTTP::Proxy(proxy.host, proxy.port).start(*start_parameters(rich_uri)) do |http|
182+
Net::HTTP::Proxy(proxy.host, proxy.port, proxy.user, proxy.password).start(*start_parameters(rich_uri)) do |http|
183183
retry_http_request(http, request, &block)
184184
end
185185
end

0 commit comments

Comments
 (0)