Skip to content

Commit

Permalink
Remove to_string and directly use to_lowercase
Browse files Browse the repository at this point in the history
Co-authored-by: Dan Clark <[email protected]>
Signed-off-by: Gaurav Kumbhat <[email protected]>
  • Loading branch information
gkumbhat and declark1 authored Oct 3, 2024
1 parent 39a6664 commit 7dbdc1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ impl OrchestratorConfig {
config.passthrough_headers.extend(
DEFAULT_ALLOWED_HEADERS
.iter()
.map(|h| h.to_string().to_lowercase()),
.map(|h| h.to_lowercase()),
);

config.apply_named_tls_configs()?;
Expand Down

0 comments on commit 7dbdc1f

Please sign in to comment.