Change in ovirt-engine-sdk[master]: sdk: Always set the request body

juan.hernandez at redhat.com juan.hernandez at redhat.com
Mon May 11 10:27:59 UTC 2015


Juan Hernandez has submitted this change and it was merged.

Change subject: sdk: Always set the request body
......................................................................


sdk: Always set the request body

The cURL library remembers the body of the request, and this means that
after sending a POST with a body the next GET will have the same body.
This isn't harmful, as servers will typically ignore bodies of GET
requests, but it isn't ideal. To solve this issue this patch changes the
SDK so that it will explicitly clear the request body.

Change-Id: I028f2672fa7f817b21c12f8805d5bf09ae2bb61e
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
---
M src/ovirtsdk/infrastructure/connectionspool.py
1 file changed, 1 insertion(+), 2 deletions(-)

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



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

Gerrit-MessageType: merged
Gerrit-Change-Id: I028f2672fa7f817b21c12f8805d5bf09ae2bb61e
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine-sdk
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Ravi Nori <rnori at redhat.com>
Gerrit-Reviewer: automation at ovirt.org



More information about the Engine-commits mailing list