]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: dump X-Versions-Location HTTP header of Swift API.
authorRadoslaw Zarzynski <rzarzynski@mirantis.com>
Thu, 3 Mar 2016 15:33:16 +0000 (16:33 +0100)
committerYehuda Sadeh <yehuda@redhat.com>
Sat, 12 Mar 2016 00:20:44 +0000 (16:20 -0800)
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
src/rgw/rgw_rest_swift.cc

index dcb546e2c3d1f7fda63259c6638280de8937529e..0d292ed2ed0a3a03288fe964b27b24b2cf8651c7 100644 (file)
@@ -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()