Skip to content

Commit 5647437

Browse files
committed
fixed response status check when making a request with a valid proxy is set
1 parent f769176 commit 5647437

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/excon/ssl_socket.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def initialize(data = {})
108108

109109
# eat the proxy's connection response
110110
response = Excon::Response.parse(self, :expects => 200, :method => 'CONNECT')
111-
if response[:status] != 200
111+
if response[:response][:status] != 200
112112
raise(Excon::Errors::ProxyConnectionError.new("proxy connection is not exstablished"))
113113
end
114114
end

0 commit comments

Comments
 (0)