Skip to content

Commit

Permalink
parse non-normative mime type for did method resolver (#627)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Tate <[email protected]>
  • Loading branch information
Ryanmtate authored Nov 13, 2024
1 parent d553350 commit 6a21f19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/dids/methods/web/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "did-web"
version = "0.3.2"
version = "0.3.3"
authors = ["Spruce Systems, Inc."]
edition = "2021"
license = "Apache-2.0"
Expand Down
1 change: 1 addition & 0 deletions crates/dids/methods/web/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ impl DIDMethodResolver for DIDWeb {
.get(header::CONTENT_TYPE)
.map(|value| match value.as_bytes() {
b"application/json" => Ok(MediaType::Json),
b"application/json; charset=utf-8" => Ok(MediaType::Json),
other => MediaType::from_bytes(other),
})
.transpose()?
Expand Down

0 comments on commit 6a21f19

Please sign in to comment.