aws-sdk-s3 1.94.0 → 1.94.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3.rb +1 -1
- data/lib/aws-sdk-s3/client.rb +1 -1
- data/lib/aws-sdk-s3/presigner.rb +12 -3
- 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: 9ce5ec00762e55e690d481b9b204ed60e801ccb615a02dc75143a51c43cc4f71
|
4
|
+
data.tar.gz: 792694ad4064f09de5b5d505f46c5aeac024eb75dbfd2866294df01ff8bf2f6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e968125f14dce1b6d3216c7429e0032a208812beb90e879be41c61b9dea09ecc9d87954d0aa81f324c7abd67facaf77b1e74b0fbe7869fcedf293a6f258c2ad
|
7
|
+
data.tar.gz: 694e1f8d67abe81aad12733d58442ff8fcca505cfce8b79941cd5d790e99c4dc23e52884984519a1c9709d0472c2301ea8ec00295bd4cb848609492937525255
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.94.
|
1
|
+
1.94.1
|
data/lib/aws-sdk-s3.rb
CHANGED
data/lib/aws-sdk-s3/client.rb
CHANGED
@@ -13910,7 +13910,7 @@ module Aws::S3
|
|
13910
13910
|
params: params,
|
13911
13911
|
config: config)
|
13912
13912
|
context[:gem_name] = 'aws-sdk-s3'
|
13913
|
-
context[:gem_version] = '1.94.
|
13913
|
+
context[:gem_version] = '1.94.1'
|
13914
13914
|
Seahorse::Client::Request.new(handlers, context)
|
13915
13915
|
end
|
13916
13916
|
|
data/lib/aws-sdk-s3/presigner.rb
CHANGED
@@ -138,6 +138,7 @@ module Aws
|
|
138
138
|
|
139
139
|
req = @client.build_request(method, params)
|
140
140
|
use_bucket_as_hostname(req) if virtual_host
|
141
|
+
handle_presigned_url_context(req)
|
141
142
|
|
142
143
|
x_amz_headers = sign_but_dont_send(
|
143
144
|
req, expires_in, scheme, time, unsigned_headers, hoist
|
@@ -183,6 +184,17 @@ module Aws
|
|
183
184
|
end
|
184
185
|
end
|
185
186
|
|
187
|
+
# Used for excluding presigned_urls from API request count.
|
188
|
+
#
|
189
|
+
# Store context information as early as possible, to allow
|
190
|
+
# handlers to perform decisions based on this flag if need.
|
191
|
+
def handle_presigned_url_context(req)
|
192
|
+
req.handle(step: :initialize, priority: 98) do |context|
|
193
|
+
context[:presigned_url] = true
|
194
|
+
@handler.call(context)
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
186
198
|
# @param [Seahorse::Client::Request] req
|
187
199
|
def sign_but_dont_send(
|
188
200
|
req, expires_in, scheme, time, unsigned_headers, hoist = true
|
@@ -242,9 +254,6 @@ module Aws
|
|
242
254
|
time: time
|
243
255
|
).to_s
|
244
256
|
|
245
|
-
# Used for excluding presigned_urls from API request count
|
246
|
-
context[:presigned_url] = true
|
247
|
-
|
248
257
|
Seahorse::Client::Response.new(context: context, data: url)
|
249
258
|
end
|
250
259
|
# Return the headers
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.94.
|
4
|
+
version: 1.94.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-kms
|