]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix response header of Swift API 14280/head
authortone-zhang <tone.zhang@linaro.org>
Thu, 6 Apr 2017 09:56:05 +0000 (17:56 +0800)
committertone-zhang <tone.zhang@linaro.org>
Thu, 6 Apr 2017 09:56:05 +0000 (17:56 +0800)
Response header of Swift API returned by radosgw does not contain
"x-openstack-request-id", but Swift returns it. Enhance the
compatibility of radosgw.

Fixes: http://tracker.ceph.com/issues/19443
Signed-off-by: tone-zhang <tone.zhang@linaro.org>
src/rgw/rgw_rest.cc

index 0a5fac47aa75909c783cba6ab597ca812cc5188f..1d6fc3ad4f3bdb5c7e5f7d0ebc864c4613a390da 100644 (file)
@@ -644,6 +644,7 @@ void dump_trans_id(req_state *s)
 {
   if (s->prot_flags & RGW_REST_SWIFT) {
     dump_header(s, "X-Trans-Id", s->trans_id);
+    dump_header(s, "X-Openstack-Request-Id", s->trans_id);
   } else if (s->trans_id.length()) {
     dump_header(s, "x-amz-request-id", s->trans_id);
   }