aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel <[email protected]>2024-08-07 22:55:58 +0300
committerGitHub <[email protected]>2024-08-07 21:55:58 +0200
commita7be8fab9b9c6d1d8368af6320564e330d4ca384 (patch)
treeb025647926c999257db68857775e42afd448737b
parent39d4d31080f6b740b430598d2c25a6bb1755b0d2 (diff)
downloadvaultwarden-a7be8fab9b9c6d1d8368af6320564e330d4ca384.tar.gz
vaultwarden-a7be8fab9b9c6d1d8368af6320564e330d4ca384.zip
Remove lowercase conversion for featureStates (#4820)
- needed to match Bitwarden, some of the feature flags might have uppercase characters (for example: ```PM-4154-bulk-encryption-service```)
-rw-r--r--src/util.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util.rs b/src/util.rs
index 04fedbfb..9d58a53f 100644
--- a/src/util.rs
+++ b/src/util.rs
@@ -730,8 +730,7 @@ pub fn convert_json_key_lcase_first(src_json: Value) -> Value {
/// Parses the experimental client feature flags string into a HashMap.
pub fn parse_experimental_client_feature_flags(experimental_client_feature_flags: &str) -> HashMap<String, bool> {
- let feature_states =
- experimental_client_feature_flags.to_lowercase().split(',').map(|f| (f.trim().to_owned(), true)).collect();
+ let feature_states = experimental_client_feature_flags.split(',').map(|f| (f.trim().to_owned(), true)).collect();
feature_states
}