From: Radoslaw Zarzynski Date: Thu, 3 Mar 2016 15:33:16 +0000 (+0100) Subject: rgw: dump X-Versions-Location HTTP header of Swift API. X-Git-Tag: v10.1.0~126^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=da9120aa79d5a96a8f490b8c848729e1b9bc905f;p=ceph.git rgw: dump X-Versions-Location HTTP header of Swift API. Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/rgw/rgw_rest_swift.cc b/src/rgw/rgw_rest_swift.cc index dcb546e2c3d1f..0d292ed2ed0a3 100644 --- a/src/rgw/rgw_rest_swift.cc +++ b/src/rgw/rgw_rest_swift.cc @@ -371,6 +371,14 @@ static void dump_container_metadata(struct req_state *s, RGWBucketEnt& bucket) } } } + + /* Dump container versioning info. */ + if (!s->bucket_info.swift_ver_location.empty()) { + string encoded_loc; + url_encode(s->bucket_info.swift_ver_location, encoded_loc); + STREAM_IO(s)->print("X-Versions-Location: %s\r\n", encoded_loc.c_str()); + } + } void RGWStatAccount_ObjStore_SWIFT::execute()