]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: set length for keystone token validation request 2683/head
authorYehuda Sadeh <yehuda@redhat.com>
Thu, 9 Oct 2014 17:20:27 +0000 (10:20 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Thu, 9 Oct 2014 22:51:55 +0000 (15:51 -0700)
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>
src/rgw/rgw_swift.cc

index 743cbf139e6464b6ebbe8267089fd4a0262801fe..bdfaea1cee61554037e82d8c5bc412f25cae7fb3 100644 (file)
@@ -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;