]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: Swift API. The second way of specifying desirable response format.
authorDmytro Iurchenko <diurchenko@mirantis.com>
Mon, 9 Feb 2015 15:07:53 +0000 (17:07 +0200)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 10 Feb 2015 22:07:40 +0000 (14:07 -0800)
commit6898f0b27f534aee94a87e4dbe128e5e92b7d828
treea75176e89dd8c1e33049e78ae339b7adbb340fea
parent8cd480d0d286d8bb88bc1f4b2c241e8f0d0a149b
rgw: Swift API. The second way of specifying desirable response format.

OpenStack Object Storage API v1 defines two ways for the client to tell which response format it understands.
Until now RGW looked at query variable 'format' only. This commit implements the second way of setting the format by
providing 'Accept' HTTP-header with the desirable response mime-type.

Backport: hammer
Fixes: #10746
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Signed-off-by: Dmytro Iurchenko <diurchenko@mirantis.com>
src/rgw/rgw_rest.cc