mirror of
https://github.com/ceph/ceph
synced 2026-08-02 07:03:18 +00:00
rgw: include str_list.h for ceph::for_each_substr in CORS header
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>
This commit is contained in:
parent
8b3f907f7c
commit
830f0e5628
@ -18,6 +18,7 @@
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <include/types.h>
|
||||
#include "include/str_list.h"
|
||||
|
||||
#define RGW_CORS_GET 0x1
|
||||
#define RGW_CORS_PUT 0x2
|
||||
@ -169,7 +170,7 @@ static inline uint8_t get_multi_cors_method_flags(const char *req_meth) {
|
||||
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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user