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 +4 -4
- data/lib/faraday/adapter/net_http.rb +2 -3
- data/lib/faraday/net_http/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0af15a93b2504b9e9104a2919b025ce4358874838a00255f148c734cc2d13bb9
|
|
4
|
+
data.tar.gz: 6d747bb65ade2b897a1aa389889f4485c5ad7d71bb40fad7d9924b2b0cc0c8d3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
194
|
-
body.force_encoding(content_charset)
|
|
193
|
+
body = body.dup.force_encoding(content_charset)
|
|
195
194
|
rescue ArgumentError
|
|
196
195
|
nil
|
|
197
196
|
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.
|
|
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.
|
|
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:
|