ovirt-engine-sdk 4.1.10 → 4.1.11

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: a13beb0ec3a34430b8b4c88dbca6733bd11ff2df
4
- data.tar.gz: 5e7347f6145b8a9427cf4d1acd479d41707794c4
3
+ metadata.gz: 12e195f8f9430391c5f93f7472803d4e4e7527d4
4
+ data.tar.gz: 3fb1cf3eb73f110e048eed1c37f908c03599eb53
5
5
  SHA512:
6
- metadata.gz: d0f2fb994b048d4928a3291c8c4b77fd4e464ac9906d9782f51f3c44047be82099c132b95a224e1a6c39f7fca4132c4e970027c49edbc1842ff070d20b3fb093
7
- data.tar.gz: 7082c6f72b823c3d9adcaa537bb5bd265e7754d5f57b76a920e06f1cd604f61da5623556106b27fbeeb74b37d16ef00edb5f1223aec8843bae7f7416f3e21626
6
+ metadata.gz: e49350a52ae93af9187f01b29ce36568faa5d73499f49ecb4e17c4a85046980836e9859a20c89b52659f4ad17066d7d31071dc8ac39eb0f85fe9a896035266dc
7
+ data.tar.gz: 41c4e08d279fc91cf8d98284958d19dd34f101aa6cb2e81cbfec48dd0a793975fc444968a851cbe00df6434c9b5be6d2f195f2ca398f99436b7b82535d42c014
data/CHANGES.adoc CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  This document describes the relevant changes between releases of the SDK.
4
4
 
5
+ == 4.1.11 / Nov 6 2017
6
+
7
+ Bug fixes:
8
+
9
+ * Improve error message for empty response body
10
+ https://bugzilla.redhat.com/1509020[#1509020].
11
+
12
+ * Don't send `Expect: 100-continue`
13
+ https://bugzilla.redhat.com/1509910[#1509910].
14
+
5
15
  == 4.1.10 / Nov 3 2017
6
16
 
7
17
  Update to model 4.1.40:
@@ -866,6 +866,7 @@ static void ov_http_client_prepare_handle(ov_http_client_object* client_ptr, ov_
866
866
  curl_easy_setopt(handle, CURLOPT_POST, 1L);
867
867
  }
868
868
  else if (rb_eql(request_ptr->method, PUT_SYMBOL)) {
869
+ *headers = curl_slist_append(*headers, "Expect:");
869
870
  curl_easy_setopt(handle, CURLOPT_UPLOAD, 1L);
870
871
  curl_easy_setopt(handle, CURLOPT_PUT, 1L);
871
872
  }
@@ -330,7 +330,9 @@ module OvirtSDK4
330
330
  def internal_read_body(response)
331
331
  # First check if the response body is empty, as it makes no sense to check the content type if there is
332
332
  # no body:
333
- connection.raise_error(response, nil) if response.body.nil? || response.body.length.zero?
333
+ if response.body.nil? || response.body.length.zero?
334
+ connection.raise_error(response, 'The response body is empty')
335
+ end
334
336
 
335
337
  # Check the content type, as otherwise the parsing will fail, and the resulting error message won't be explicit
336
338
  # about the cause of the problem:
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module OvirtSDK4
19
- VERSION = '4.1.10'.freeze
19
+ VERSION = '4.1.11'.freeze
20
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ovirt-engine-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.10
4
+ version: 4.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Hernandez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-03 00:00:00.000000000 Z
11
+ date: 2017-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake