]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: only fetch cors info when needed
authorYehuda Sadeh <yehuda@inktank.com>
Thu, 1 Aug 2013 20:20:19 +0000 (13:20 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Fri, 2 Aug 2013 01:27:01 +0000 (18:27 -0700)
commitae153813476f1f0f52fb570fcbee7a315ab13dcd
tree28a49e4f53476f01d005ef23e3afa044038fa13e
parentb139a7cd34b4e203ab164ada7a8fa590b50d8b13
rgw: only fetch cors info when needed

Fixes: #5831
This commit moves around the cors handling code. Beforehand
we were unnecessarily reading the cors headers for every
request whether that was needed or not. Moved that code to
be only called when needed. While at it, cleaned up the
layering a bit so that not to mix S3 specific code with
the generic functionality (except for debugging).

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
src/rgw/rgw_main.cc
src/rgw/rgw_op.cc
src/rgw/rgw_op.h
src/rgw/rgw_rest.cc
src/rgw/rgw_rest.h
src/rgw/rgw_rest_s3.cc
src/rgw/rgw_rest_s3.h