]> 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)
committerYehuda Sadeh <yehuda@inktank.com>
Tue, 28 Jan 2014 20:36:31 +0000 (12:36 -0800)
commitfdea76ef6f7d7c4ee89c30d430f5495072023957
treecb070ae4134b0eba5dba55258a3869daa8adc992
parenta5739e3903f8c30c8168199413818922b4a29bad
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>
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
(cherry picked from commit 2abacd9678ae04cefac457882ba718a454948915)
src/rgw/rgw_op.cc