faraday_middleware-aws-sigv4 0.2.1 → 0.2.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5261b18d9aa30fdf39be58b9c030156590629001
|
4
|
+
data.tar.gz: 7e8879d43e869b8a7c72b869601d3265d9a3f0ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fde65a4dbb4c7f1099b08262db7d699757e4b77bf13c5e028bcd1671b974f978c7a3da5d6bcb045aafe3d94343b9d085b10e8bc757ca78574180352bd72b0858
|
7
|
+
data.tar.gz: 9a5f8f306279fb1ee07b4ef29d214bc77ad8b07d38b0df5d9d0609fbd8eb8a93b609956d93d5c1af9defd611babc0489fc3a4303fef451299d619bf8c631a106
|
@@ -22,22 +22,20 @@ module FaradayMiddleware::AwsSigV4Util
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def seahorse_encode_www_form(params)
|
25
|
-
params.
|
25
|
+
params.flat_map {|key, value|
|
26
26
|
encoded_key = URI.encode_www_form_component(key)
|
27
27
|
|
28
28
|
if value.nil?
|
29
29
|
encoded_key
|
30
|
-
|
31
|
-
value.
|
30
|
+
else
|
31
|
+
Array(value).map do |v|
|
32
32
|
if v.nil?
|
33
33
|
# nothing to do
|
34
34
|
else
|
35
35
|
encoded_key + '=' + Aws::Sigv4::Signer.uri_escape(v)
|
36
36
|
end
|
37
|
-
|
38
|
-
else
|
39
|
-
encoded_key + '=' + Aws::Sigv4::Signer.uri_escape(value)
|
37
|
+
end
|
40
38
|
end
|
41
|
-
}.join(
|
39
|
+
}.join(?&)
|
42
40
|
end
|
43
41
|
end
|