]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Added Cosmetic change in etag of copyObjectResult 47527/head
authorroot <root@ssc-vm-rhev4-2955.colo.seagate.com>
Wed, 10 Aug 2022 07:52:20 +0000 (01:52 -0600)
committershraddhaghatol <shraddha.j.ghatol@seagate.com>
Mon, 22 Aug 2022 13:19:13 +0000 (07:19 -0600)
Signed-off-by: shraddhaghatol <shraddha.j.ghatol@seagate.com>
src/rgw/rgw_rest_s3.cc

index 2916775098242211a9b035e30ce797163290431f..9e34141e90ed8862343da997816ec81204538227 100644 (file)
@@ -3493,7 +3493,7 @@ void RGWCopyObj_ObjStore_S3::send_response()
   if (op_ret == 0) {
     dump_time(s, "LastModified", mtime);
     if (!etag.empty()) {
-      s->formatter->dump_string("ETag", std::move(etag));
+      s->formatter->dump_format("ETag", "\"%s\"",etag.c_str());
     }
     s->formatter->close_section();
     rgw_flush_formatter_and_reset(s, s->formatter);