From 30f7e4d67116a5bb0dc6de67bfd4ba11ea8483b2 Mon Sep 17 00:00:00 2001 From: "ramin.najarbashi" Date: Mon, 8 Jun 2026 22:47:52 +0330 Subject: [PATCH] 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 (cherry picked from commit 830f0e562851a36abc2b450fcf0dd3e554abf24f) --- src/rgw/rgw_cors.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rgw/rgw_cors.h b/src/rgw/rgw_cors.h index c500fab29cb2..9b4fd0ee7ecb 100644 --- a/src/rgw/rgw_cors.h +++ b/src/rgw/rgw_cors.h @@ -18,6 +18,7 @@ #include #include #include +#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; } -- 2.47.3