Skip to content

Commit

Permalink
Merge pull request #709 from jasquat/fix_response_status_check
Browse files Browse the repository at this point in the history
fixed response status check when making a request with a valid proxy …
  • Loading branch information
geemus committed Nov 21, 2019
2 parents f769176 + 5647437 commit e89bbb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/excon/ssl_socket.rb
Expand Up @@ -108,7 +108,7 @@ def initialize(data = {})

# eat the proxy's connection response
response = Excon::Response.parse(self, :expects => 200, :method => 'CONNECT')
if response[:status] != 200
if response[:response][:status] != 200
raise(Excon::Errors::ProxyConnectionError.new("proxy connection is not exstablished"))
end
end
Expand Down

0 comments on commit e89bbb7

Please sign in to comment.