summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_common.h
diff options
context:
space:
mode:
authorJane Zhu <jzhu116@bloomberg.net>2023-08-08 10:17:47 +0200
committerCasey Bodley <cbodley@redhat.com>2023-11-23 23:40:28 +0100
commit72065c9c7160cb0e69de751ed4d1c6e9ffd72caf (patch)
tree026dce0d0259b69a1e5882f1557c26fe6c1138d7 /src/rgw/rgw_common.h
parentrgw/swift: preserve dashes/underscores in swift user metadata names (diff)
downloadceph-72065c9c7160cb0e69de751ed4d1c6e9ffd72caf.tar.xz
ceph-72065c9c7160cb0e69de751ed4d1c6e9ffd72caf.zip
rgw/swift: convert underscores to hyphens in swift user metadata names
Signed-off-by: Juan Zhu <jzhu4@dev-10-34-20-139.pw1.bcc.bloomberg.com>
Diffstat (limited to 'src/rgw/rgw_common.h')
-rw-r--r--src/rgw/rgw_common.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/rgw/rgw_common.h b/src/rgw/rgw_common.h
index 29d4e2870d5..ee17e2c8d43 100644
--- a/src/rgw/rgw_common.h
+++ b/src/rgw/rgw_common.h
@@ -1074,7 +1074,7 @@ struct req_info {
req_info(CephContext *cct, const RGWEnv *env);
void rebuild_from(const req_info& src);
- void init_meta_info(const DoutPrefixProvider *dpp, bool *found_bad_meta);
+ void init_meta_info(const DoutPrefixProvider *dpp, bool *found_bad_meta, const int prot_flags);
};
struct req_init_state {
@@ -1770,10 +1770,8 @@ static constexpr uint32_t MATCH_POLICY_STRING = 0x08;
extern bool match_policy(std::string_view pattern, std::string_view input,
uint32_t flag);
-extern std::string camelcase_dash_http_attr(const std::string& orig);
-extern std::string camelcase_http_attr(const std::string& orig);
-extern std::string lowercase_dash_http_attr(const std::string& orig);
-extern std::string lowercase_dash_underscore_http_attr(const std::string& orig);
+extern std::string camelcase_dash_http_attr(const std::string& orig, bool convert2dash = true);
+extern std::string lowercase_dash_http_attr(const std::string& orig, bool bidirection = false);
void rgw_setup_saved_curl_handles();
void rgw_release_all_curl_handles();