Change in ovirt-engine-sdk-ruby[sdk_4.0]: Clear the POST body before sending requests

juan.hernandez at redhat.com juan.hernandez at redhat.com
Fri Jul 8 10:25:10 UTC 2016


Juan Hernandez has submitted this change and it was merged.

Change subject: Clear the POST body before sending requests
......................................................................


Clear the POST body before sending requests

Currently the SDK doesn't clear the cURL POST body before sending
requests, as a result the body of a previous POST request can interfere
with a current GET request, causing an error in the server side. This
patch changes the SDK so that the POST body is cleared before every
request.

Change-Id: I9df5a89dec28f4f252dc99fcc774ede017707d30
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
(cherry picked from commit 98f40972498e13c11c1c20e2c07ad8ae02f862b7)
---
M sdk/lib/ovirtsdk4/http.rb
1 file changed, 3 insertions(+), 0 deletions(-)

Approvals:
  Juan Hernandez: Verified; Looks good to me, approved
  Jenkins CI: Passed CI tests



-- 
To view, visit https://gerrit.ovirt.org/60395
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I9df5a89dec28f4f252dc99fcc774ede017707d30
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-sdk-ruby
Gerrit-Branch: sdk_4.0
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>



More information about the Engine-commits mailing list