diff options
author | Yehuda Sadeh <yehuda@inktank.com> | 2013-08-27 19:38:45 -0700 |
---|---|---|
committer | Yehuda Sadeh <yehuda@inktank.com> | 2013-09-04 16:03:22 -0700 |
commit | be00d1988b8ad9e275cb495b0b4eb8feb93baaa2 (patch) | |
tree | 89df2dd6539ab6db2520aff822c0fc3557b9c7ca | |
parent | 21230eb36b80f3abaf38d14a96088950b2402ca9 (diff) | |
download | ceph-be00d1988b8ad9e275cb495b0b4eb8feb93baaa2.tar.gz |
rgw: fix CORS rule check
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
-rw-r--r-- | src/rgw/rgw_cors.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rgw/rgw_cors.cc b/src/rgw/rgw_cors.cc index 033bfa2f215..4be83605b50 100644 --- a/src/rgw/rgw_cors.cc +++ b/src/rgw/rgw_cors.cc @@ -79,7 +79,10 @@ static bool is_string_in_set(set<string>& s, string h) { << ", at offset not less than " << flen << dendl; if (h.compare((h.size() - sl.size()), sl.size(), sl) != 0) continue; + ssplit.pop_front(); } + if (!ssplit.empty()) + continue; return true; } } |