Skip to content

Commit

Permalink
Remove lowercase conversion for featureStates
Browse files Browse the repository at this point in the history
- needed to match Bitwarden, some of the feature flags might have uppercase characters (for example: `PM-4154-bulk-encryption-service`)
  • Loading branch information
dfunkt committed Aug 7, 2024
1 parent 39d4d31 commit 76fb5cd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 76fb5cd

Please sign in to comment.