We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adfec62 commit b22eed8Copy full SHA for b22eed8
crates/common/src/utils.rs
@@ -510,7 +510,7 @@ impl std::fmt::Display for EncodingType {
510
impl FromStr for EncodingType {
511
type Err = String;
512
fn from_str(value: &str) -> Result<Self, Self::Err> {
513
- match value {
+ match value.to_ascii_lowercase().as_str() {
514
"application/json" | "" => Ok(EncodingType::Json),
515
"application/octet-stream" => Ok(EncodingType::Ssz),
516
_ => Err(format!("unsupported encoding type: {value}")),
0 commit comments