From 030ca0aeb8f8f793371c9b9215a85aebf49c04f5 Mon Sep 17 00:00:00 2001 From: Abhishek Lekshmanan Date: Mon, 27 Feb 2017 17:48:53 +0100 Subject: [PATCH] rgw_rest_client: clarify comment on set content length Signed-off-by: Abhishek Lekshmanan --- src/rgw/rgw_rest_client.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rgw/rgw_rest_client.cc b/src/rgw/rgw_rest_client.cc index a129ee53d31c4..92111725e56c6 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); } -- 2.39.5