From: Yehuda Sadeh Date: Thu, 9 Oct 2014 17:20:27 +0000 (-0700) Subject: rgw: set length for keystone token validation request X-Git-Tag: v0.87.1~74 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f410d764d2e6795389cb320b4436cff3607927bd;p=ceph.git rgw: set length for keystone token validation request Fixes: #7796 Backport: giany, firefly Need to set content length to this request, as the server might not handle a chunked request (even though we don't send anything). Tested-by: Mark Kirkwood Signed-off-by: Yehuda Sadeh (cherry picked from commit 3dd4ccad7fe97fc16a3ee4130549b48600bc485c) --- diff --git a/src/rgw/rgw_swift.cc b/src/rgw/rgw_swift.cc index 743cbf139e64..bdfaea1cee61 100644 --- a/src/rgw/rgw_swift.cc +++ b/src/rgw/rgw_swift.cc @@ -508,6 +508,8 @@ int RGWSwift::validate_keystone_token(RGWRados *store, const string& token, stru validate.append_header("X-Auth-Token", admin_token); + validate.set_send_length(0); + int ret = validate.process(url.c_str()); if (ret < 0) return ret;