]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: Look at correct header about headers for CORS
authorRobin H. Johnson <robbat2@gentoo.org>
Sun, 15 Dec 2013 19:27:49 +0000 (11:27 -0800)
committerRobin H. Johnson <robbat2@gentoo.org>
Sun, 15 Dec 2013 19:43:15 +0000 (11:43 -0800)
commit2abacd9678ae04cefac457882ba718a454948915
treeaf2d9bf818b3559607607ccf0595f3c22f7a2ce7
parentb7946ff4b3962f59a79991a393f81049289b5973
rgw: Look at correct header about headers for CORS

The CORS standard dictates that preflight requests are made with the
Access-Control-Request-Headers header containing the headers of the
author request. The Access-Control-Allow-Headers header is sent in the
response.

The present code looks for Access-Control-Allow-Headers in request, so
fix it to look at Access-Control-Request-Headers instead.

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