]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix CORS rule check
authorYehuda Sadeh <yehuda@inktank.com>
Wed, 28 Aug 2013 02:38:45 +0000 (19:38 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Wed, 4 Sep 2013 23:11:21 +0000 (16:11 -0700)
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/rgw/rgw_cors.cc

index 033bfa2f215ea06b59a8781659500b177f739c8e..4be83605b502e6ae46b4b92e39c9a1aab8f40a00 100644 (file)
@@ -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;
     }
   }