Skip to content

Commit

Permalink
Merge pull request #902 from bruno-/async_http_adapter_warning
Browse files Browse the repository at this point in the history
Fix async http adapter warning
  • Loading branch information
bblimke committed Sep 11, 2020
2 parents 8ce537a + 3101bb6 commit 4ae891b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/webmock/http_lib_adapters/async_http_client_adapter.rb
Expand Up @@ -151,7 +151,7 @@ def inspect
def create_connected_sockets
Async::IO::Socket.pair(Socket::AF_UNIX, Socket::SOCK_STREAM).tap do |sockets|
sockets.each do |socket|
socket.instance_variable_set :@alpn_protocol, @alpn_protocol
socket.instance_variable_set :@alpn_protocol, nil
socket.instance_eval do
def alpn_protocol
nil # means HTTP11 will be used for HTTPS
Expand Down

0 comments on commit 4ae891b

Please sign in to comment.