]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: Fix CORS allow-headers validation 949/head 975/head
authorRobin H. Johnson <robbat2@gentoo.org>
Sun, 15 Dec 2013 20:26:19 +0000 (12:26 -0800)
committerRobin H. Johnson <robbat2@gentoo.org>
Sun, 15 Dec 2013 20:52:23 +0000 (12:52 -0800)
commit31b60bfd9347a386ff12b4e4f1812d664bcfff01
tree579b56cb76e293721dffacdfbfc300183b16a187
parent6a7edab2673423c53c6a422a10cb65fe07f9b235
rgw: Fix CORS allow-headers validation

This fix is needed because Ceph presently validates CORS headers in a
case-sensitive manner. Keeps a local cache of lowercased allowed headers
to avoid converting the allowed headers to lowercase each time.

CORS 6.2.6: If any of the header field-names is not a ASCII
case-insensitive match for any of the values in list of headers do not
set any additional headers and terminate this set of steps.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
src/rgw/rgw_cors.cc
src/rgw/rgw_cors.h
src/rgw/rgw_op.cc