]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: swift GET / HEAD object returns X-Timestamp field 4584/head
authorYehuda Sadeh <yehuda@redhat.com>
Tue, 30 Sep 2014 21:15:47 +0000 (14:15 -0700)
committerNathan Cutler <ncutler@suse.cz>
Wed, 6 May 2015 13:46:09 +0000 (15:46 +0200)
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 27024725568916d342fe6156d6f62ddb697c2956..caa8818ddb2a2c662ce8e28a17a0c81fc351d67e 100644 (file)
@@ -597,6 +597,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);