]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
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)
commitffd69ab3c01f0dd74c957fb87fb7781243daf521
tree85fc0f94674ada2fdee2626ff6f7cf41d17c9d03
parent0935bb61b79e3da597d388a24b3290385f92bd0b
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 <yehuda@inktank.com>
src/rgw/rgw_rest_user.cc