From 3dd4ccad7fe97fc16a3ee4130549b48600bc485c Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Thu, 9 Oct 2014 10:20:27 -0700 Subject: [PATCH] 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 --- src/rgw/rgw_swift.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rgw/rgw_swift.cc b/src/rgw/rgw_swift.cc index 743cbf139e6..bdfaea1cee6 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; -- 2.47.3