summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@inktank.com>2013-08-27 19:38:45 -0700
committerYehuda Sadeh <yehuda@inktank.com>2013-09-04 16:03:22 -0700
commitbe00d1988b8ad9e275cb495b0b4eb8feb93baaa2 (patch)
tree89df2dd6539ab6db2520aff822c0fc3557b9c7ca
parent21230eb36b80f3abaf38d14a96088950b2402ca9 (diff)
downloadceph-be00d1988b8ad9e275cb495b0b4eb8feb93baaa2.tar.gz
rgw: fix CORS rule check
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
-rw-r--r--src/rgw/rgw_cors.cc3
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;
}
}