]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: set length for keystone token validation request
authorYehuda Sadeh <yehuda@redhat.com>
Thu, 9 Oct 2014 17:20:27 +0000 (10:20 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Mon, 3 Nov 2014 17:12:30 +0000 (09:12 -0800)
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 <mark.kirkwood@catalyst.net.nz>
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 3dd4ccad7fe97fc16a3ee4130549b48600bc485c)

src/rgw/rgw_swift.cc

index d9654a7608ded86d168bf00d9b91945ef71e835c..2445e174b9d1540c502be1b300946910c6d6683c 100644 (file)
@@ -505,6 +505,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;