From: Yehuda Sadeh Date: Wed, 28 Aug 2013 02:38:45 +0000 (-0700) Subject: rgw: fix CORS rule check X-Git-Tag: v0.67.4~32^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d45c87ea738807487e72c0719b0d3d459cbe19e9;p=ceph.git rgw: fix CORS rule check Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_cors.cc b/src/rgw/rgw_cors.cc index 033bfa2f215e..4be83605b502 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; } }