]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: use s->content_length instead of s->length 1544/head
authorYehuda Sadeh <yehuda@inktank.com>
Thu, 27 Mar 2014 17:53:25 +0000 (10:53 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Thu, 27 Mar 2014 17:53:25 +0000 (10:53 -0700)
Fixes: #7876
Need to use the actual content length, not the pointer to the string.
This was probably working because there's correlation to when
content_length > 0 to whether s->length is not null.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/rgw/rgw_rest_user.cc

index 0613c49f314585b1702b33d8294cd80df4ad285a..30f46f0561861967c7a50b39ee3553c21dce65cb 100644 (file)
@@ -784,7 +784,7 @@ void RGWOp_Quota_Set::execute()
 
   bool use_http_params;
 
-  if (s->length > 0) {
+  if (s->content_length > 0) {
     use_http_params = false;
   } else {
     const char *encoding = s->info.env->get("HTTP_TRANSFER_ENCODING");