Skip to content

Commit

Permalink
Only lowercase ascii header names
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasPickering committed Jan 22, 2025
1 parent c94035a commit f2fdf0f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/core/src/collection/cereal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,7 @@ where
IndexMap::deserialize(deserializer)?;
Ok(headers
.into_iter()
// TODO should be ascii only?
.map(|(k, v)| (k.to_lowercase(), v))
.map(|(k, v)| (k.to_ascii_lowercase(), v))
.collect())
}

Expand Down

0 comments on commit f2fdf0f

Please sign in to comment.