excon 0.68.0 → 0.69.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of excon might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0d8a164f71addfcb1dd80b6edd0c80e3ad6805f5ac606f101c4cdc4cfa78471d
4
- data.tar.gz: 257abc2f2d180f06e26b2f1ce9050a1293f54dd5e002f7d6fca5ecfb4e28d16d
3
+ metadata.gz: b44ebb3f8a40cb208218924a063cc827c7b647f50dfeae844a50ea931d9b843d
4
+ data.tar.gz: a7df8d392adf920dccd72324599954bd7862d99beb4c3415184510c89ead1ef4
5
5
  SHA512:
6
- metadata.gz: 817a44da5419bd3f1a6db5cd08aaeffefd1aa5aabd57c30dfb3587554c10775e4b1cf53942a00a9aa01e042eff846a6be982f434a31cb318ce1fce7f1126ce9d
7
- data.tar.gz: 0f48f8146ce55832d34e16bbbd5246bfe04ae784486582f26c784b02e1ecd5e94b1752f4eb25cc935672e7101319a38fdb3805d634dcdf69ae2226a925c943ab
6
+ metadata.gz: 740351476e48dba6f8516f622f3410d94b1c3aabe6a411fc3d22e36235e4250099cfb280e7041552274a79d785e941dfcc81468a3b51af406c1cd8ba0be4010e
7
+ data.tar.gz: ef6c4454054bbeec5037ea4731ab0cda87b99d0a4b7f86bc5c5435f9273fa50b100b4b923f777c55852d890a0f57107f254eb88b75d9c7ec6fafdd25448c5708
data/lib/excon/error.rb CHANGED
@@ -50,6 +50,7 @@ or:
50
50
  class InvalidHeaderValue < Error; end
51
51
  class Timeout < Error; end
52
52
  class ResponseParse < Error; end
53
+ class ProxyConnectionError < Error; end
53
54
  class ProxyParse < Error; end
54
55
  class TooManyRedirects < Error; end
55
56
 
@@ -107,7 +107,10 @@ module Excon
107
107
  @socket.write(request)
108
108
 
109
109
  # eat the proxy's connection response
110
- Excon::Response.parse(self, :expects => 200, :method => 'CONNECT')
110
+ response = Excon::Response.parse(self, :expects => 200, :method => 'CONNECT')
111
+ if response[:status] != 200
112
+ raise(Excon::Errors::ProxyConnectionError.new("proxy connection is not exstablished"))
113
+ end
111
114
  end
112
115
 
113
116
  # convert Socket to OpenSSL::SSL::SSLSocket
data/lib/excon/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Excon
3
- VERSION = '0.68.0'
3
+ VERSION = '0.69.0'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: excon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.68.0
4
+ version: 0.69.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - dpiddy (Dan Peterson)
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-10-25 00:00:00.000000000 Z
13
+ date: 2019-11-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec