faraday-net_http 3.0.0 → 3.0.1
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 -2
- data/lib/faraday/net_http/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6dceca36c2e49d9e2642dd7d6177df8ee20d799efb59a2ae661a2790f05244a9
|
4
|
+
data.tar.gz: c064e33f9fa0666b1b7402f5bb948401fd76c78205d627942b5e693b271fbaed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b49ece078d46b76578f63b8efefeff9b10cade3eb71850583b5f1902f60aab105cbc4a81581718e33f0cb7a12357a07bf8f0440832aa85044adfbcd7a5cea2a
|
7
|
+
data.tar.gz: 365a1b68e1f2bde815155b9836a281705ba6806155363245cc3ca837d6a3bfb014c4b8f0bd46984c52783f73a1f7957c2dd8ab6f39b84c639e15b4beae7b9a56
|
@@ -190,8 +190,8 @@ module Faraday
|
|
190
190
|
|
191
191
|
def encoded_body(http_response)
|
192
192
|
body = http_response.body || +''
|
193
|
-
/\bcharset
|
194
|
-
content_charset = ::Encoding.find(match.captures.first)
|
193
|
+
/\bcharset=(.+)/.match(http_response['Content-Type']) do |match|
|
194
|
+
content_charset = ::Encoding.find(match.captures.first.split(';').first.strip)
|
195
195
|
body = body.dup if body.frozen?
|
196
196
|
body.force_encoding(content_charset)
|
197
197
|
rescue ArgumentError
|
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.
|
4
|
+
version: 3.0.1
|
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-
|
11
|
+
date: 2022-10-08 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.
|
45
|
+
changelog_uri: https://github.com/lostisland/faraday-net_http/releases/tag/v3.0.1
|
46
46
|
post_install_message:
|
47
47
|
rdoc_options: []
|
48
48
|
require_paths:
|