]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Fix casing of Content-Type header 5910/head
authorRobin H. Johnson <robin.johnson@dreamhost.com>
Fri, 4 Sep 2015 01:07:48 +0000 (01:07 +0000)
committerKarol Mroz <kmroz@suse.com>
Tue, 27 Oct 2015 23:21:01 +0000 (16:21 -0700)
commitdb1cbe700e41ee7a2db5ef10173c429283bc5a2a
tree070bf1c94f56e753d1990ffbbe1d80a72629851e
parent9764da52395923e0b32908d83a9f7304401fee43
Fix casing of Content-Type header

It turns out, despite the HTTP spec declaring that header field names
should be case-insensitive, some clients treat them wrongly, and
consider "Content-type" to not match "Content-Type".

CyberDuck was one of those clients, now fixed upstream in
https://trac.cyberduck.io/ticket/8999

To reduce future occurances of this bug, fix the casing of the
Content-Type header, to strictly comply with the HTTP specification (be
strict about what you send, and generous about what you receive).

Fixes: #12939
Backport: infernalis, hammer, firefly
Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
(cherry picked from commit 1b9fbffdc24160251b96cec820d62fb2a12b6eab)
src/rgw/rgw_rest.cc