From 50fd48fbdc8f4f0e9151eb405eb112b710304bb9 Mon Sep 17 00:00:00 2001 From: qiankunzheng Date: Fri, 18 Mar 2016 13:58:22 -0400 Subject: [PATCH] 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) --- src/rgw/rgw_swift_auth.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rgw/rgw_swift_auth.cc b/src/rgw/rgw_swift_auth.cc index 8c7f032624e9..d4e07d0772d4 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; -- 2.47.3