Skip to content

Commit ab234f2

Browse files
authored
Merge pull request #280 from libin/master
Switch to new as we'll update http instance after this
2 parents 9ebb3c1 + cbed0d8 commit ab234f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jenkins_api_client/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ def make_http_request(request, follow_redirect = @follow_redirects)
345345
when 'http'
346346
http = Net::HTTP::Proxy(@proxy_ip, @proxy_port).new(@server_ip, @server_port)
347347
when 'socks'
348-
http = Net::HTTP::SOCKSProxy(@proxy_ip, @proxy_port).start(@server_ip, @server_port)
348+
http = Net::HTTP::SOCKSProxy(@proxy_ip, @proxy_port).new(@server_ip, @server_port)
349349
else
350350
raise "unknown proxy protocol: '#{@proxy_protocol}'"
351351
end

0 commit comments

Comments
 (0)