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-11 09:45:14 -0700
commitd45c87ea738807487e72c0719b0d3d459cbe19e9 (patch)
treefbb2bb6e2913f910f0f2978158aff98a0ae4330a
parent986fa92a7a1d88111ba28457160adfcfdaabc5d2 (diff)
downloadceph-d45c87ea738807487e72c0719b0d3d459cbe19e9.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;
}
}