faraday-net_http 3.0.1 → 3.0.2

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: 6dceca36c2e49d9e2642dd7d6177df8ee20d799efb59a2ae661a2790f05244a9
4
- data.tar.gz: c064e33f9fa0666b1b7402f5bb948401fd76c78205d627942b5e693b271fbaed
3
+ metadata.gz: 9cad2197cf7df07a668741fb5ae27309b6f7aee396b207268ba63076569ae59f
4
+ data.tar.gz: 47fbe72a4c70f85b5659376f0a758088d26c8a6f2901a8320a22bfba872e2c1f
5
5
  SHA512:
6
- metadata.gz: 4b49ece078d46b76578f63b8efefeff9b10cade3eb71850583b5f1902f60aab105cbc4a81581718e33f0cb7a12357a07bf8f0440832aa85044adfbcd7a5cea2a
7
- data.tar.gz: 365a1b68e1f2bde815155b9836a281705ba6806155363245cc3ca837d6a3bfb014c4b8f0bd46984c52783f73a1f7957c2dd8ab6f39b84c639e15b4beae7b9a56
6
+ metadata.gz: 7b6cb45789018beedcef079c136c213e6532aba87d2503bd6f1544cf30f3ab3cdda9c08e4164d0f93a056595622cdf9c8f125e19798f8147e3e52f1387c5c800
7
+ data.tar.gz: 66131665eb559ad8b1bbba18c12916c3ace677b93a6055269c7def945dced9021f2864df22d9326880a8379602e0ac78fd44f49c137217e05978fa7377cedb3d
@@ -190,8 +190,8 @@ module Faraday
190
190
 
191
191
  def encoded_body(http_response)
192
192
  body = http_response.body || +''
193
- /\bcharset=(.+)/.match(http_response['Content-Type']) do |match|
194
- content_charset = ::Encoding.find(match.captures.first.split(';').first.strip)
193
+ /\bcharset=([^;]+)/.match(http_response['Content-Type']) do |match|
194
+ content_charset = ::Encoding.find(match[1].strip)
195
195
  body = body.dup if body.frozen?
196
196
  body.force_encoding(content_charset)
197
197
  rescue ArgumentError
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Faraday
4
4
  module NetHttp
5
- VERSION = '3.0.1'
5
+ VERSION = '3.0.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faraday-net_http
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan van der Pas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-08 00:00:00.000000000 Z
11
+ date: 2022-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -42,7 +42,7 @@ licenses:
42
42
  metadata:
43
43
  homepage_uri: https://github.com/lostisland/faraday-net_http
44
44
  source_code_uri: https://github.com/lostisland/faraday-net_http
45
- changelog_uri: https://github.com/lostisland/faraday-net_http/releases/tag/v3.0.1
45
+ changelog_uri: https://github.com/lostisland/faraday-net_http/releases/tag/v3.0.2
46
46
  post_install_message:
47
47
  rdoc_options: []
48
48
  require_paths: