]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw:response information is error when geting token of swift account
authorqiankunzheng <zheng.qiankun@h3c.com>
Fri, 18 Mar 2016 17:58:22 +0000 (13:58 -0400)
committerqiankunzheng <zheng.qiankun@h3c.com>
Fri, 18 Mar 2016 17:59:08 +0000 (13:59 -0400)
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>
src/rgw/rgw_swift_auth.cc

index 32234d7f2c1ef799a6a63f3150900ff3271bfa99..cf23f29e0badf00216db46ed14df92daf2875af8 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;