From: Yehuda Sadeh Date: Thu, 27 Mar 2014 17:53:25 +0000 (-0700) Subject: rgw: use s->content_length instead of s->length X-Git-Tag: v0.79~79^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1544%2Fhead;p=ceph.git rgw: use s->content_length instead of s->length 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 --- diff --git a/src/rgw/rgw_rest_user.cc b/src/rgw/rgw_rest_user.cc index 0613c49f3145..30f46f056186 100644 --- a/src/rgw/rgw_rest_user.cc +++ b/src/rgw/rgw_rest_user.cc @@ -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");