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

juan.hernandez at redhat.com juan.hernandez at redhat.com
Fri Jul 8 08:44:16 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>
---
M sdk/lib/ovirtsdk4/http.rb
1 file changed, 3 insertions(+), 0 deletions(-)

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



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

Gerrit-MessageType: merged
Gerrit-Change-Id: I9df5a89dec28f4f252dc99fcc774ede017707d30
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine-sdk-ruby
Gerrit-Branch: master
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