]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: swift GET / HEAD object returns X-Timestamp field 3571/head
authorYehuda Sadeh <yehuda@redhat.com>
Tue, 30 Sep 2014 21:15:47 +0000 (14:15 -0700)
committerLoic Dachary <ldachary@redhat.com>
Mon, 2 Feb 2015 14:29:49 +0000 (15:29 +0100)
Fixes: #8911
Backport: giant, firefly, dumpling
Swift clients expect X-Timestamp header, dump it.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 5b41d80b7fb9ed96c26801fc42c044191bb18d84)

src/rgw/rgw_rest_swift.cc

index e04e2c0cdd2d8004b538e99774c00d1884e25e01..f28c1f59769225dc66937e4371bc3661f67ef55c 100644 (file)
@@ -565,6 +565,7 @@ int RGWGetObj_ObjStore_SWIFT::send_response_data(bufferlist& bl, off_t bl_ofs, o
 
   dump_content_length(s, total_len);
   dump_last_modified(s, lastmod);
+  s->cio->print("X-Timestamp: %lld\r\n", (long long)lastmod);
 
   if (!ret) {
     map<string, bufferlist>::iterator iter = attrs.find(RGW_ATTR_ETAG);