get_multi_cors_method_flags() calls ceph::for_each_substr(), but
rgw_cors.h did not include str_list.h. The CORS unit test includes
only this header, so the build failed with an undeclared identifier.
Qualify the call and add the missing include.
Signed-off-by: ramin.najarbashi <ramin.najarbashi@gmail.com>
(cherry picked from commit
830f0e562851a36abc2b450fcf0dd3e554abf24f)
#include <map>
#include <string>
#include <include/types.h>
+#include "include/str_list.h"
#define RGW_CORS_GET 0x1
#define RGW_CORS_PUT 0x2
else if (method == "HEAD") flags |= RGW_CORS_HEAD;
else if (method == "COPY") flags |= RGW_CORS_COPY;
};
- for_each_substr(allowed_methods, ";,= \t", apply_flag);
+ ceph::for_each_substr(allowed_methods, ";,= \t", apply_flag);
return flags;
}