excon 0.96.0 → 0.97.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3f536fc005dab3b336b1da07902d62bbb9d4c8fc1c96b35bbf397e35a261df28
4
- data.tar.gz: cac9b79b1ee19bfc4be9860c571c56a003395c19444ba10ee2a6be86fea6c79c
3
+ metadata.gz: 8ff4a50f4dfd31750a4ca2f5acb3453a98cbc8b8f15645d426ff414755b021cb
4
+ data.tar.gz: 336a29208217d6ce3d5fe791b3f59e4d34cba8a4ab441f0a9526fd5bd2a848a2
5
5
  SHA512:
6
- metadata.gz: 07c7f5a37768b660eff0a4bb700c08d10fd02b6365e081719f3e345798148e15b1ec63d8bf3c643328d2a9b3501ec4cf33c4d20e0a670723cb89cff34c143a09
7
- data.tar.gz: 16af4b9c500b08dd86014d31daf29e0ffb96ef249ffd97743b103be6326d9bbd6f1e90b957794943038bb2050a4ce1ea8bdce6d1860b91ee60820b5cc937cac8
6
+ metadata.gz: ccfae843569c9f02b15ef9ecdc003ff7d85bef3f4d909b541c537e82e58c374ce2b1209c2ccff3d3366e2544d12b970e9014b0cf5c73165f5a7765b3da146d06
7
+ data.tar.gz: 70983a6be372db8daa48e38c0ea462f924e9a46e7d3e065b12297f63bf01f42d02dcd07affdae85c34afa6dc885416f1a78bb147f2115c813fd1053b997017e8
@@ -579,6 +579,8 @@ module Excon
579
579
  raise ArgumentError, "The `:ssl_proxy_headers` parameter should only be used with HTTPS requests."
580
580
  end
581
581
  if @data[:proxy][:scheme] == UNIX
582
+ # URI.parse might return empty string for security reasons.
583
+ @data[:proxy][:host] = nil if @data[:proxy][:host] == ""
582
584
  if @data[:proxy][:host]
583
585
  raise ArgumentError, "The `:host` parameter should not be set for `unix://` proxies.\n" +
584
586
  "When supplying a `unix://` URI, it should start with `unix:/` or `unix:///`."
data/lib/excon/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Excon
3
- VERSION = '0.96.0'
3
+ VERSION = '0.97.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.96.0
4
+ version: 0.97.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: 2023-01-04 00:00:00.000000000 Z
13
+ date: 2023-01-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec