Skip to content

Commit

Permalink
Fixed Issue #3 HTTP::Client TCPSoctet problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
636f7374 committed Oct 29, 2020
1 parent 2c9ca96 commit d1c66fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/durian/extra/http/client.cr
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class HTTP::Client
private def create_socket(hostname : String)
return TCPSocket.new hostname, @port, @dns_timeout, @connect_timeout unless resolver = dns_resolver

TCPSocket.connect hostname, @port, resolver, @connect_timeout
Durian::TCPSocket.connect hostname, @port, resolver, @connect_timeout
end

def tcp_socket=(value : TCPSocket)
Expand Down

0 comments on commit d1c66fe

Please sign in to comment.