]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: add "Accept-Ranges" to response header of Swift API 17967/head
authortone-zhang <tone.zhang@linaro.org>
Tue, 26 Sep 2017 09:00:23 +0000 (09:00 +0000)
committerTone Zhang <tone.zhang@arm.com>
Thu, 14 Dec 2017 05:45:54 +0000 (05:45 +0000)
"Accept-ranges" is missing from the Response header of swift API
returned by Ceph rgw.

Fixes: http://tracker.ceph.com/issues/21554
Signed-off-by: Tone Zhang <tone.zhang@arm.com>
src/rgw/rgw_rest_swift.cc

index ffc16aba023e174ad8b60e6b0245f2cd24f99d8c..958ebc9e77bde0593f0054b6ca4b3a95535b2cb3 100644 (file)
@@ -174,6 +174,7 @@ void RGWListBuckets_ObjStore_SWIFT::send_response_begin(bool has_buckets)
             user_quota,
             static_cast<RGWAccessControlPolicy_SWIFTAcct&>(*s->user_acl));
     dump_errno(s);
+    dump_header(s, "Accept-Ranges", "bytes");
     end_header(s, NULL, NULL, NO_CONTENT_LENGTH, true);
   }