faraday-net_http 3.4.2 → 3.4.3

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: 4f751937bb4e217fdaf30f40593d284b7880bc87e2483d42c67e8ae3b6c26bd7
4
- data.tar.gz: eebf6f192e713be8ceff42dd955c34032a5b0a4cb3bc0a7fa166b7a8f46244f4
3
+ metadata.gz: 0af15a93b2504b9e9104a2919b025ce4358874838a00255f148c734cc2d13bb9
4
+ data.tar.gz: 6d747bb65ade2b897a1aa389889f4485c5ad7d71bb40fad7d9924b2b0cc0c8d3
5
5
  SHA512:
6
- metadata.gz: 55cf1589b29591645629f436542ac064f64879c40ecf902313ba51270e09fd9119418fc33faec49e2597d1bd63d4ab7d8b92fa5057fdcd2c9d812bdc094a7c00
7
- data.tar.gz: 2b927eb3dee1e952ab365ef53c830154cf96165098f7c44a727b98aec994e681818c9c1e6a3256535cc6278b66c647eaf03f8a0f730352b794526478c1078a18
6
+ metadata.gz: 89856da7a33bd01df1d73e2565d6f08c7d62ef26b9a4c57619d39c51c73f35713ab8acda17b65e879cf7bccecdc5e5a16dd8932322cff0eaf7418fb2f73145f6
7
+ data.tar.gz: '09361d60487368a2a13a487196845c7a81bd2433ae80723daaaa7d4c86b479d3fd8e6070587108744ac393122c459153e14542d67098b2dafc6b87b6199dd9a6'
@@ -187,11 +187,10 @@ module Faraday
187
187
  end
188
188
 
189
189
  def encoded_body(http_response)
190
- body = http_response.body || +''
190
+ body = http_response.body || ''
191
191
  /\bcharset=([^;]+)/.match(http_response['Content-Type']) do |match|
192
192
  content_charset = ::Encoding.find(match[1].strip)
193
- body = body.dup if body.frozen?
194
- body.force_encoding(content_charset)
193
+ body = body.dup.force_encoding(content_charset)
195
194
  rescue ArgumentError
196
195
  nil
197
196
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Faraday
4
4
  module NetHttp
5
- VERSION = '3.4.2'
5
+ VERSION = '3.4.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faraday-net_http
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.2
4
+ version: 3.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan van der Pas
@@ -41,7 +41,7 @@ licenses:
41
41
  metadata:
42
42
  homepage_uri: https://github.com/lostisland/faraday-net_http
43
43
  source_code_uri: https://github.com/lostisland/faraday-net_http
44
- changelog_uri: https://github.com/lostisland/faraday-net_http/releases/tag/v3.4.2
44
+ changelog_uri: https://github.com/lostisland/faraday-net_http/releases/tag/v3.4.3
45
45
  rubygems_mfa_required: 'true'
46
46
  rdoc_options: []
47
47
  require_paths: