From: Abhishek Lekshmanan Date: Mon, 27 Feb 2017 16:48:53 +0000 (+0100) Subject: rgw_rest_client: clarify comment on set content length X-Git-Tag: v13.1.0~270^2~102 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=030ca0aeb8f8f793371c9b9215a85aebf49c04f5;p=ceph.git rgw_rest_client: clarify comment on set content length Signed-off-by: Abhishek Lekshmanan --- diff --git a/src/rgw/rgw_rest_client.cc b/src/rgw/rgw_rest_client.cc index a129ee53d31c..92111725e56c 100644 --- a/src/rgw/rgw_rest_client.cc +++ b/src/rgw/rgw_rest_client.cc @@ -685,10 +685,12 @@ int RGWRESTStreamRWRequest::send_request(RGWAccessKey *key, map& pmanager = mgr; } + // Not sure if this is the place to set a send_size, curl otherwise sets + // chunked option and doesn't send content length anymore uint64_t send_size = (size_t)(outbl.length() - write_ofs); if (send_size > 0){ - ldout(cct, 0) << "ABHI!!! set send len to " << send_size << dendl; + ldout(cct,20) << "Setting content length as " << send_size << dendl; set_send_length(send_size); }