excon 0.86.0 → 0.87.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a2dca9d5fcf3cf76075ea43d0554e68254d9f965efb33b4f2cfd9faa5a11fce
4
- data.tar.gz: 5fdd4d682efeac93ba2023725e5bea0d06f47a01cdebb14698d99d6b76f47ce9
3
+ metadata.gz: feed02c6ed9dea097d1a5ecb76230c1e8269420889ab74f7293eaadbf1016959
4
+ data.tar.gz: 2b2ae40ae73e3966008a2936c2c4eb01ebf2c78d825277737034960d91291bc8
5
5
  SHA512:
6
- metadata.gz: 25fc699a3336047ebd8e0e06e0a5180ecf2f8ff518d7231624a8b42b89851811f8edbb227bcc239336fc3b38af3ec290e3e2cb2701aa77799ce7a80cfdc5667b
7
- data.tar.gz: 1c0811b5b855ec535d7d1608ba225d8dfebcb83809b53ed5199158cdc3b516283f933f216b2199cb9aa0535411edad60bdc0a859ddc31e5d1b479fe04e9c6ebb
6
+ metadata.gz: 6cdbb4ba79d550190977f97a06f991f6da58e3bb42eaf663925e248b4d29aec7191445749c2b041defa9a63fc0f3fd152ee9f24094d15ba3afef9174f15205ad
7
+ data.tar.gz: 5c78f5e0721c6c57ff904e6835db57ddcf5ef08f132957f07af838a3a2bfb30af3793d1775bf1be46dcc2d4f82633687eb639a581b04a5b541297b8d7a158a9e
data/lib/excon/utils.rb CHANGED
@@ -131,7 +131,8 @@ module Excon
131
131
  end
132
132
  [values].flatten.each do |value|
133
133
  if value.to_s.match(/[\r\n]/)
134
- raise Excon::Errors::InvalidHeaderValue.new(value.to_s.inspect + ' contains forbidden "\r" or "\n"')
134
+ # Don't include the potentially sensitive header value (i.e. authorization token) in the message
135
+ raise Excon::Errors::InvalidHeaderValue.new(key.to_s + ' header value contains forbidden "\r" or "\n"')
135
136
  end
136
137
  headers_str << key.to_s << ': ' << value.to_s << CR_NL
137
138
  end
data/lib/excon/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Excon
3
- VERSION = '0.86.0'
3
+ VERSION = '0.87.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.86.0
4
+ version: 0.87.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: 2021-10-01 00:00:00.000000000 Z
13
+ date: 2021-10-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec