From ffd69ab3c01f0dd74c957fb87fb7781243daf521 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Thu, 27 Mar 2014 10:53:25 -0700 Subject: [PATCH] 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 --- src/rgw/rgw_rest_user.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_rest_user.cc b/src/rgw/rgw_rest_user.cc index 0613c49f314..30f46f05618 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"); -- 2.47.3