From 8203b9b05853d9620cea448132af3c9ed72e05ee Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Tue, 27 Aug 2013 19:38:45 -0700 Subject: [PATCH] rgw: fix CORS rule check Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_cors.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rgw/rgw_cors.cc b/src/rgw/rgw_cors.cc index 033bfa2f215ea..4be83605b502e 100644 --- a/src/rgw/rgw_cors.cc +++ b/src/rgw/rgw_cors.cc @@ -79,7 +79,10 @@ static bool is_string_in_set(set& 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; } } -- 2.39.5