]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw:response information is error when geting token of swift account 11474/head
authorqiankunzheng <zheng.qiankun@h3c.com>
Fri, 18 Mar 2016 17:58:22 +0000 (13:58 -0400)
committerLoic Dachary <ldachary@redhat.com>
Thu, 13 Oct 2016 09:46:56 +0000 (11:46 +0200)
The header is X-Trans-Id instead of x-amz-request-id in the response header

Fixes:#15195
Signed-off-by: Qiankun Zheng <zheng.qiankun@h3c.com>
(cherry picked from commit 08e909d0b844e8be3cb82d6add3e87d38e19e80e)

src/rgw/rgw_swift_auth.cc

index 8c7f032624e92496397acb713e38acdafd20ffd6..d4e07d0772d409c91740021f11578777c0142974 100644 (file)
@@ -145,6 +145,8 @@ void RGW_SWIFT_Auth_Get::execute()
   const char *key = s->info.env->get("HTTP_X_AUTH_KEY");
   const char *user = s->info.env->get("HTTP_X_AUTH_USER");
 
+  s->prot_flags |= RGW_REST_SWIFT;
+
   string user_str;
   RGWUserInfo info;
   bufferlist bl;