]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Fix casing of Content-Type header 5801/head
authorRobin H. Johnson <robin.johnson@dreamhost.com>
Fri, 4 Sep 2015 01:07:48 +0000 (01:07 +0000)
committerRobin H. Johnson <robin.johnson@dreamhost.com>
Fri, 4 Sep 2015 01:18:11 +0000 (01:18 +0000)
commit1b9fbffdc24160251b96cec820d62fb2a12b6eab
tree1ddaf82d216b395dbd86200b85e7b1f9c21a0588
parent2d1d2efb1b30bb87acf0e995965c44e43bffc35d
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>
src/rgw/rgw_rest.cc