The version_id member in RGWGetObjAttrs shadows the one in
RGWGetObj.
Just assign it before conditionally returning the version-id header
in RGWGetObjAttrs_ObjStore_S3::send_response().
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
dump_errno(s);
if (op_ret == 0) {
+ version_id = s->object->get_instance();
+
// x-amz-delete-marker: DeleteMarker // not sure we can plausibly do this?
dump_last_modified(s, lastmod);
dump_header_if_nonempty(s, "x-amz-version-id", version_id);