Skip to content

Commit 6aa7ac7

Browse files
committed
Fix unix socket Net::HTTP initializer compatibility
1 parent ae9331d commit 6aa7ac7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/docker_engine_ruby/internal/transport/pooled_net_requester.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ class PooledNetRequester
88
extend DockerEngineRuby::Internal::Util::SorbetRuntimeSupport
99

1010
class UnixSocketHTTP < Net::HTTP
11-
def initialize(socket_path)
11+
# Net::HTTP.new forwards multiple args to #initialize.
12+
# We only care about socket_path and ignore the rest.
13+
def initialize(socket_path, *_rest)
1214
super("localhost", Net::HTTP.http_default_port)
1315
@socket_path = socket_path
1416
end

0 commit comments

Comments
 (0)