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 +4 -4
- data/CHANGES.adoc +10 -0
- data/ext/ovirtsdk4c/ov_http_client.c +1 -0
- data/lib/ovirtsdk4/service.rb +3 -1
- data/lib/ovirtsdk4/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12e195f8f9430391c5f93f7472803d4e4e7527d4
|
4
|
+
data.tar.gz: 3fb1cf3eb73f110e048eed1c37f908c03599eb53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
}
|
data/lib/ovirtsdk4/service.rb
CHANGED
@@ -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
|
-
|
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:
|
data/lib/ovirtsdk4/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|