]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: swift GET / HEAD object returns X-Timestamp field 2624/head
authorYehuda Sadeh <yehuda@redhat.com>
Tue, 30 Sep 2014 21:15:47 +0000 (14:15 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Wed, 1 Oct 2014 22:17:41 +0000 (15:17 -0700)
Fixes: #8911
Backport: giant, firefly, dumpling
Swift clients expect X-Timestamp header, dump it.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_rest_swift.cc

index e1cfedf6d46b4c79efe9b2284e7e0a8a3c5c8338..31d58e5eff8ffa0ebde6ab250c16e248445a3beb 100644 (file)
@@ -566,6 +566,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);