From: tone-zhang Date: Tue, 26 Sep 2017 09:00:23 +0000 (+0000) Subject: rgw: add "Accept-Ranges" to response header of Swift API X-Git-Tag: v13.0.2~734^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b6ca7f3b3edce98f57f1b0fa3ebdf9aa7a26e40f;p=ceph-ci.git rgw: add "Accept-Ranges" to response header of Swift API "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 --- diff --git a/src/rgw/rgw_rest_swift.cc b/src/rgw/rgw_rest_swift.cc index ffc16aba023..958ebc9e77b 100644 --- a/src/rgw/rgw_rest_swift.cc +++ b/src/rgw/rgw_rest_swift.cc @@ -174,6 +174,7 @@ void RGWListBuckets_ObjStore_SWIFT::send_response_begin(bool has_buckets) user_quota, static_cast(*s->user_acl)); dump_errno(s); + dump_header(s, "Accept-Ranges", "bytes"); end_header(s, NULL, NULL, NO_CONTENT_LENGTH, true); }