lib/httpx/plugins/proxy/socks4.rb in httpx-0.6.4 vs lib/httpx/plugins/proxy/socks4.rb in httpx-0.6.5

- old
+ new

@@ -26,11 +26,11 @@ return unless @state == :idle @io.connect return unless @io.connected? - req, _ = @pending.first + req = @pending.first return unless req request_uri = req.uri @write_buffer << Packet.connect(@options.proxy, request_uri) __socks4_proxy_connect @@ -49,10 +49,10 @@ end def __socks4_on_packet(packet) _version, status, _port, _ip = packet.unpack("CCnN") if status == GRANTED - req, _ = @pending.first + req = @pending.first request_uri = req.uri @io = ProxySSL.new(@io, request_uri, @options) if request_uri.scheme == "https" transition(:connected) throw(:called) else