diff options
author | Yehuda Sadeh <yehuda@inktank.com> | 2013-08-27 19:38:45 -0700 |
---|---|---|
committer | Yehuda Sadeh <yehuda@inktank.com> | 2013-09-04 16:11:21 -0700 |
commit | 8203b9b05853d9620cea448132af3c9ed72e05ee (patch) | |
tree | ec329b00dc4b6c6d2c19b06b4c94a5069e0f9905 | |
parent | b564db891e2bcacbc0da41481358e6c7bbe15721 (diff) | |
download | ceph-8203b9b05853d9620cea448132af3c9ed72e05ee.tar.gz |
rgw: fix CORS rule check
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
-rw-r--r-- | src/rgw/rgw_cors.cc | 3 |
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; } } |