From: Max Kellermann Date: Thu, 25 Jun 2026 19:34:27 +0000 (+0200) Subject: rgw: add missing include X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=13e7fd758a5d505cadfb65ba2d9a8c9c30524b40;p=ceph.git rgw: add missing include Signed-off-by: Max Kellermann --- 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; }