From 13e7fd758a5d505cadfb65ba2d9a8c9c30524b40 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 25 Jun 2026 21:34:27 +0200 Subject: [PATCH] rgw: add missing include Signed-off-by: Max Kellermann --- src/rgw/rgw_cors.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/rgw/rgw_cors.h b/src/rgw/rgw_cors.h index 9b4fd0ee7ec..c39f3cbb577 100644 --- a/src/rgw/rgw_cors.h +++ b/src/rgw/rgw_cors.h @@ -18,6 +18,7 @@ #include #include #include +#include "include/encoding.h" // for WRITE_CLASS_ENCODER() #include "include/str_list.h" #define RGW_CORS_GET 0x1 @@ -35,6 +36,8 @@ #define CORS_MAX_AGE_INVALID ((uint32_t)-1) +namespace ceph { class Formatter; } + class RGWCORSRule { protected: @@ -90,7 +93,7 @@ public: void format_exp_headers(std::string& s); void erase_origin_if_present(std::string& origin, bool *rule_empty); void dump_origins(); - void dump(Formatter *f) const; + void dump(ceph::Formatter *f) const; bool is_header_allowed(const char *hdr, size_t len); bool matches_method(const char *req_meth); bool matches_preflight_headers(const char *req_hdrs); @@ -118,7 +121,7 @@ class RGWCORSConfiguration decode(rules, bl); DECODE_FINISH(bl); } - void dump(Formatter *f) const; + void dump(ceph::Formatter *f) const; std::list& get_rules() { return rules; } -- 2.47.3