]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: only set CURLOPT_UPLOAD for PUT/POST requests 12105/head
authorCasey Bodley <cbodley@redhat.com>
Mon, 21 Nov 2016 16:18:42 +0000 (11:18 -0500)
committerCasey Bodley <cbodley@redhat.com>
Tue, 29 Nov 2016 21:02:34 +0000 (16:02 -0500)
commitf3a0c40f106e3eaf3d8b3f8a6c34664bb2722a6c
treedc71d6dbf367a4e4d5d9d4f742c33180df65d859
parenta70dc74fe3acedbff3bbf2dd136d5f5f453ef9c6
rgw: only set CURLOPT_UPLOAD for PUT/POST requests

when set on GET requests, curl sends a 'Transfer-encoding: chunked'
header, but doesn't do the actual encoding to terminate the message

Fixes: http://tracker.ceph.com/issues/17822
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_http_client.cc