aws-sdk 1.43.1 → 1.43.2

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
  SHA1:
3
- metadata.gz: 52041f55d4c94a1749ea803fdde55eb508aa3135
4
- data.tar.gz: 08a7efbe53cf9ffa5071c57fdc113ffd0c9c852b
3
+ metadata.gz: 489fe0285453706d944f5d6d8288178ea6dddce5
4
+ data.tar.gz: 4c309426eda2dec63f5038d92df167d76e6df233
5
5
  SHA512:
6
- metadata.gz: a7be4c039a5e4013f6c15d0bceaab7e8cf14e49dbab7fdd079b21590a72f5f7b3155b0e091ca716c8d07cf79424e86410ad45f4f2df5ea9f2e51e4207dd382f7
7
- data.tar.gz: 4ed7152201a0ee18c1a59aa2c8b1bbc0f6fe475c7c195f45b6af0ad2c1df937e0cca6ac6fa85e8f19a548c462c733e6aff5e0f084d51299fa0086d4172094674
6
+ metadata.gz: 7177ec3b944e1eda7180f1648676abb8e9e492d79c5edbeec33be3a1d6cbc0e27fb6cac470ca23923579a6729e16d7d278e6db74e07408cbd1150ac67fb16ff4
7
+ data.tar.gz: f778a8249d8b2404f13f728de55408a5ba3306d6bc04a0ed1f711dfcc4a966f95398e11dba3866f1a87cb38acc5ea8919744895fb7cf571b34827cb7fa4a0b85
@@ -58,33 +58,30 @@ module AWS
58
58
  http.continue_timeout = request.continue_timeout if
59
59
  http.respond_to?(:continue_timeout=)
60
60
 
61
+ exp_length = nil
62
+ act_length = 0
61
63
  http.request(build_net_http_request(request)) do |net_http_resp|
62
64
  response.status = net_http_resp.code.to_i
63
65
  response.headers = net_http_resp.to_hash
64
66
  exp_length = determine_expected_content_length(response)
65
- act_length = 0
66
- begin
67
- if block_given? and response.status < 300
68
- net_http_resp.read_body do |data|
69
- begin
70
- act_length += data.bytesize
71
- yield data
72
- ensure
73
- retry_possible = false
74
- end
67
+ if block_given? and response.status < 300
68
+ net_http_resp.read_body do |data|
69
+ begin
70
+ act_length += data.bytesize
71
+ yield data unless data.empty?
72
+ ensure
73
+ retry_possible = false
75
74
  end
76
- else
77
- response.body = net_http_resp.read_body
78
- act_length += response.body.bytesize unless response.body.nil?
79
- end
80
- ensure
81
- run_check = exp_length.nil? == false && request.http_method != "HEAD" && @verify_content_length
82
- if run_check && act_length != exp_length
83
- raise TruncatedBodyError, 'content-length does not match'
84
75
  end
76
+ else
77
+ response.body = net_http_resp.read_body
78
+ act_length += response.body.bytesize unless response.body.nil?
85
79
  end
86
80
  end
87
-
81
+ run_check = exp_length && request.http_method != "HEAD" && @verify_content_length
82
+ if run_check && act_length != exp_length
83
+ raise TruncatedBodyError, 'content-length does not match'
84
+ end
88
85
  end
89
86
 
90
87
  rescue *NETWORK_ERRORS => error
@@ -25,7 +25,7 @@ module AWS
25
25
 
26
26
  def populate_request request, options
27
27
 
28
- now = Time.now.utc.strftime('%Y-%m-%dT%H:%M:%S.%LZ')
28
+ now = Time.now.utc.strftime('%Y-%m-%dT%H:%M:%SZ')
29
29
 
30
30
  request.headers['Content-Type'] =
31
31
  "application/x-www-form-urlencoded; charset=utf-8"
@@ -13,5 +13,5 @@
13
13
 
14
14
  module AWS
15
15
  # Current version of the AWS SDK for Ruby
16
- VERSION = '1.43.1'
16
+ VERSION = '1.43.2'
17
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.43.1
4
+ version: 1.43.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services