]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: always return crypt headers on put obj
authorSeena Fallah <seenafallah@gmail.com>
Mon, 16 Jun 2025 10:32:26 +0000 (13:32 +0300)
committerSeena Fallah <seenafallah@gmail.com>
Wed, 19 Nov 2025 19:00:46 +0000 (20:00 +0100)
Co-authored-by: Marcus Watts <mwatts@redhat.com>
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
src/rgw/rgw_rest_s3.cc

index 026d418f8e1e1ed44ea04c315317d169dfdcd901..0b9014dc5565038ae69a0ed4f412b525889d9b8b 100644 (file)
@@ -2946,6 +2946,9 @@ void RGWPutObj_ObjStore_S3::send_response()
 
     string expires = get_s3_expiration_header(s, mtime);
 
+    for (auto &it : crypt_http_responses)
+      dump_header(s, it.first, it.second);
+
     if (copy_source.empty()) {
       dump_errno(s);
       dump_etag(s, etag);
@@ -2956,8 +2959,6 @@ void RGWPutObj_ObjStore_S3::send_response()
        dump_header(s, "x-amz-checksum-type", "FULL_OBJECT");
        dump_header(s, cksum->header_name(), cksum->to_armor());
       }
-      for (auto &it : crypt_http_responses)
-        dump_header(s, it.first, it.second);
     } else {
       dump_errno(s);
       dump_header_if_nonempty(s, "x-amz-version-id", version_id);