From: qiankunzheng Date: Fri, 18 Mar 2016 17:58:22 +0000 (-0400) Subject: rgw:response information is error when geting token of swift account X-Git-Tag: v10.2.4~36^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F11474%2Fhead;p=ceph.git rgw:response information is error when geting token of swift account The header is X-Trans-Id instead of x-amz-request-id in the response header Fixes:#15195 Signed-off-by: Qiankun Zheng (cherry picked from commit 08e909d0b844e8be3cb82d6add3e87d38e19e80e) --- diff --git a/src/rgw/rgw_swift_auth.cc b/src/rgw/rgw_swift_auth.cc index 8c7f032624e..d4e07d0772d 100644 --- a/src/rgw/rgw_swift_auth.cc +++ b/src/rgw/rgw_swift_auth.cc @@ -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;